@@ -783,7 +783,7 @@ class Trace(PlotlyTrace):
783
783
784
784
785
785
# (3) Patch 'custom' methods into some graph objects
786
- def patch_Data (Data ):
786
+ def get_patched_data_class (Data ):
787
787
def to_graph_objs (self , caller = True ): # TODO TODO TODO! check logic!
788
788
"""Change any nested collections to subclasses of PlotlyDict/List.
789
789
@@ -823,10 +823,10 @@ def to_graph_objs(self, caller=True): # TODO TODO TODO! check logic!
823
823
Data .to_graph_objs = to_graph_objs # override method!
824
824
return Data
825
825
826
- Data = patch_Data (Data )
826
+ Data = get_patched_data_class (Data )
827
827
828
828
829
- def patch_Annotations (Annotations ):
829
+ def get_patched_annotations_class (Annotations ):
830
830
def to_graph_objs (self , caller = True ):
831
831
"""Change any nested collections to subclasses of PlotlyDict/List.
832
832
@@ -863,10 +863,10 @@ def to_graph_objs(self, caller=True):
863
863
Annotations .to_graph_objs = to_graph_objs # override method!
864
864
return Annotations
865
865
866
- Annotations = patch_Annotations (Annotations )
866
+ Annotations = get_patched_annotations_class (Annotations )
867
867
868
868
869
- def patch_Figure (Figure ):
869
+ def get_patched_figure_class (Figure ):
870
870
def __init__ (self , * args , ** kwargs ):
871
871
if len (args ):
872
872
if ('data' not in kwargs ) and ('data' not in args [0 ]):
@@ -882,10 +882,10 @@ def __init__(self, *args, **kwargs):
882
882
Figure .__init__ = __init__ # override method!
883
883
return Figure
884
884
885
- Figure = patch_Figure (Figure )
885
+ Figure = get_patched_figure_class (Figure )
886
886
887
887
888
- def patch_Layout (Layout ):
888
+ def get_patched_layout_class (Layout ):
889
889
def __init__ (self , * args , ** kwargs ):
890
890
super (Layout , self ).__init__ (* args , ** kwargs )
891
891
@@ -1056,7 +1056,7 @@ def force_clean(self, caller=True): # TODO: can't make call to super...
1056
1056
Layout .force_clean = force_clean # override methods!
1057
1057
return Layout
1058
1058
1059
- Layout = patch_Layout (Layout )
1059
+ Layout = get_patched_layout_class (Layout )
1060
1060
1061
1061
1062
1062
# (4) NAME_TO_CLASS dict and class-generating function
0 commit comments