Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plotly/graph_objs/graph_objs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,10 @@ def force_clean(self, caller=True): # TODO: can't make call to super...


# (4) NAME_TO_CLASS dict and class-generating function
NAME_TO_CLASS = {name: getattr(sys.modules[__name__], name)
for name in NAME_TO_KEY.keys()}
# NOTE: used to be a dict comprehension, but we try and support 2.6.x now
NAME_TO_CLASS = {}
for name in NAME_TO_KEY.keys():
NAME_TO_CLASS[name] = getattr(sys.modules[__name__], name)


def get_class_instance_by_name(name, *args, **kwargs):
Expand Down