@@ -33,8 +33,8 @@ def fullmatch(regex, string, flags=0):
3333 """Emulate python-3.4 re.fullmatch()."""
3434 return re .match ("(?:" + regex + r")\Z" , string , flags = flags )
3535
36- # (object)
37- class BaseFigure :
36+
37+ class BaseFigure ( object ) :
3838 """
3939 Base class for all figure types (both widget and non-widget)
4040 """
@@ -748,8 +748,8 @@ def _str_to_dict_path(key_path_str):
748748 bracket_re = re .compile ('(.*)\[(\d+)\]' )
749749 key_path2 = []
750750 for key in key_path :
751- # match = fullmatch(bracket_re.pattern, key)
752- match = bracket_re .fullmatch (key )
751+ match = fullmatch (bracket_re .pattern , key )
752+ # match = bracket_re.fullmatch(key)
753753 if match :
754754 key_path2 .extend (match .groups ())
755755 else :
@@ -2937,9 +2937,6 @@ def _set_compound_prop(self, prop, val):
29372937 # ------------
29382938 validator = self ._validators .get (prop )
29392939 # type: BasePlotlyType
2940- print (val )
2941- print (type (val ))
2942- print ('\n ' )
29432940 val = validator .validate_coerce (val )
29442941
29452942 # Save deep copies of current and new states
@@ -3399,16 +3396,16 @@ def _process_kwargs(self, **kwargs):
33993396 unknown_kwargs = {
34003397 k : v
34013398 for k , v in kwargs .items ()
3402- if not self ._subplotid_prop_re .fullmatch (k )
3403- # if not fullmatch(self._subplotid_prop_re.pattern, k)
3399+ # if not self._subplotid_prop_re.fullmatch(k)
3400+ if not fullmatch (self ._subplotid_prop_re .pattern , k )
34043401 }
34053402 super (BaseLayoutHierarchyType , self )._process_kwargs (** unknown_kwargs )
34063403
34073404 subplot_kwargs = {
34083405 k : v
34093406 for k , v in kwargs .items ()
3410- if self ._subplotid_prop_re .fullmatch (k )
3411- # if fullmatch(self._subplotid_prop_re.pattern, k)
3407+ # if self._subplotid_prop_re.fullmatch(k)
3408+ if fullmatch (self ._subplotid_prop_re .pattern , k )
34123409 }
34133410
34143411 for prop , value in subplot_kwargs .items ():
@@ -3428,8 +3425,8 @@ def _set_subplotid_prop(self, prop, value):
34283425 # Get regular expression match
34293426 # ----------------------------
34303427 # Note: we already tested that match exists in the constructor
3431- match = self ._subplotid_prop_re .fullmatch (prop )
3432- # match = fullmatch(self._subplotid_prop_re.pattern, prop)
3428+ # match = self._subplotid_prop_re.fullmatch(prop)
3429+ match = fullmatch (self ._subplotid_prop_re .pattern , prop )
34333430
34343431 subplot_prop = match .group (1 )
34353432 suffix_digit = int (match .group (2 ))
@@ -3491,8 +3488,8 @@ def _strip_subplot_suffix_of_1(self, prop):
34913488 # Handle subplot suffix digit of 1
34923489 # --------------------------------
34933490 # Remove digit of 1 from subplot id (e.g.. xaxis1 -> xaxis)
3494- match = self ._subplotid_prop_re .fullmatch (prop )
3495- # match = fullmatch(self._subplotid_prop_re.pattern, prop)
3491+ # match = self._subplotid_prop_re.fullmatch(prop)
3492+ match = fullmatch (self ._subplotid_prop_re .pattern , prop )
34963493
34973494 if match :
34983495 subplot_prop = match .group (1 )
@@ -3544,8 +3541,8 @@ def __setitem__(self, prop, value):
35443541
35453542 # Check for subplot assignment
35463543 # ----------------------------
3547- match = self ._subplotid_prop_re .fullmatch (prop )
3548- # match = fullmatch(self._subplotid_prop_re.pattern, prop)
3544+ # match = self._subplotid_prop_re.fullmatch(prop)
3545+ match = fullmatch (self ._subplotid_prop_re .pattern , prop )
35493546 if match is None :
35503547 # Set as ordinary property
35513548 super (BaseLayoutHierarchyType , self ).__setitem__ (prop , value )
@@ -3559,8 +3556,8 @@ def __setattr__(self, prop, value):
35593556 """
35603557 # Check for subplot assignment
35613558 # ----------------------------
3562- match = self ._subplotid_prop_re .fullmatch (prop )
3563- # match = fullmatch(self._subplotid_prop_re.pattern, prop)
3559+ # match = self._subplotid_prop_re.fullmatch(prop)
3560+ match = fullmatch (self ._subplotid_prop_re .pattern , prop )
35643561 if match is None :
35653562 # Set as ordinary property
35663563 super (BaseLayoutHierarchyType , self ).__setattr__ (prop , value )
@@ -3582,8 +3579,7 @@ class BaseTraceHierarchyType(BasePlotlyType):
35823579 """
35833580
35843581 def __init__ (self , plotly_name , ** kwargs ):
3585- # BaseTraceHierarchyType
3586- super (BasePlotlyType , self ).__init__ (plotly_name , ** kwargs )
3582+ super (BaseTraceHierarchyType , self ).__init__ (plotly_name , ** kwargs )
35873583
35883584 def _send_prop_set (self , prop_path_str , val ):
35893585 if self .parent :
0 commit comments