File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ class PlotlyDict(dict):
298
298
def __init__ (self , * args , ** kwargs ):
299
299
class_name = self .__class__ .__name__
300
300
super (PlotlyDict , self ).__init__ (* args , ** kwargs )
301
- if issubclass (globals () [class_name ], PlotlyTrace ):
301
+ if issubclass (NAME_TO_CLASS [class_name ], PlotlyTrace ):
302
302
if (class_name != 'PlotlyTrace' ) and (class_name != 'Trace' ):
303
303
self ['type' ] = NAME_TO_KEY [class_name ]
304
304
self .validate ()
@@ -836,7 +836,7 @@ def to_graph_objs(self, caller=True):
836
836
"""
837
837
for index , entry in enumerate (self ):
838
838
if isinstance (entry , (PlotlyDict , PlotlyList )):
839
- if not isinstance (entry , globals () ['Annotation' ]):
839
+ if not isinstance (entry , NAME_TO_CLASS ['Annotation' ]):
840
840
raise exceptions .PlotlyListEntryError (
841
841
obj = self ,
842
842
index = index ,
You can’t perform that action at this time.
0 commit comments