@@ -770,7 +770,7 @@ def __init__(self, points, **kwargs):
770770 points : ndarray
771771 A 2x2 numpy array of the form ``[[x0, y0], [x1, y1]]``.
772772 """
773- BboxBase .__init__ (self , ** kwargs )
773+ super () .__init__ (** kwargs )
774774 points = np .asarray (points , float )
775775 if points .shape != (2 , 2 ):
776776 raise ValueError ('Bbox points must be of the form '
@@ -791,7 +791,7 @@ def __init__(self, points, **kwargs):
791791
792792 def invalidate (self ):
793793 self ._check (self ._points )
794- TransformNode .invalidate (self )
794+ super () .invalidate ()
795795
796796 @staticmethod
797797 def unit ():
@@ -1030,7 +1030,7 @@ def __init__(self, bbox, transform, **kwargs):
10301030 raise ValueError (
10311031 "The input and output dimensions of 'transform' must be 2" )
10321032
1033- BboxBase .__init__ (self , ** kwargs )
1033+ super () .__init__ (** kwargs )
10341034 self ._bbox = bbox
10351035 self ._transform = transform
10361036 self .set_children (bbox , transform )
@@ -1107,7 +1107,7 @@ def __init__(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs):
11071107 if not bbox .is_bbox :
11081108 raise ValueError ("'bbox' is not a bbox" )
11091109
1110- BboxBase .__init__ (self , ** kwargs )
1110+ super () .__init__ (** kwargs )
11111111 self ._bbox = bbox
11121112 self .set_children (bbox )
11131113 self ._points = None
@@ -1700,7 +1700,7 @@ class AffineBase(Transform):
17001700 is_affine = True
17011701
17021702 def __init__ (self , * args , ** kwargs ):
1703- Transform .__init__ (self , * args , ** kwargs )
1703+ super () .__init__ (* args , ** kwargs )
17041704 self ._inverted = None
17051705
17061706 def __array__ (self , * args , ** kwargs ):
@@ -1839,7 +1839,7 @@ def __init__(self, matrix=None, **kwargs):
18391839
18401840 If *matrix* is None, initialize with the identity transform.
18411841 """
1842- Affine2DBase .__init__ (self , ** kwargs )
1842+ super () .__init__ (** kwargs )
18431843 if matrix is None :
18441844 # A bit faster than np.identity(3).
18451845 matrix = IdentityTransform ._mtx .copy ()
@@ -2288,7 +2288,7 @@ def __init__(self, a, b, **kwargs):
22882288 self .input_dims = a .input_dims
22892289 self .output_dims = b .output_dims
22902290
2291- Transform .__init__ (self , ** kwargs )
2291+ super () .__init__ (** kwargs )
22922292 self ._a = a
22932293 self ._b = b
22942294 self .set_children (a , b )
@@ -2314,8 +2314,8 @@ def _invalidate_internal(self, value, invalidating_node):
23142314 (not self ._a .is_affine or invalidating_node is self ._a )):
23152315 value = Transform .INVALID
23162316
2317- Transform ._invalidate_internal (self , value = value ,
2318- invalidating_node = invalidating_node )
2317+ super () ._invalidate_internal (value = value ,
2318+ invalidating_node = invalidating_node )
23192319
23202320 def __eq__ (self , other ):
23212321 if isinstance (other , (CompositeGenericTransform , CompositeAffine2D )):
@@ -2401,7 +2401,7 @@ def __init__(self, a, b, **kwargs):
24012401 self .input_dims = a .input_dims
24022402 self .output_dims = b .output_dims
24032403
2404- Affine2DBase .__init__ (self , ** kwargs )
2404+ super () .__init__ (** kwargs )
24052405 self ._a = a
24062406 self ._b = b
24072407 self .set_children (a , b )
@@ -2472,7 +2472,7 @@ def __init__(self, boxin, boxout, **kwargs):
24722472 if not boxin .is_bbox or not boxout .is_bbox :
24732473 raise ValueError ("'boxin' and 'boxout' must be bbox" )
24742474
2475- Affine2DBase .__init__ (self , ** kwargs )
2475+ super () .__init__ (** kwargs )
24762476 self ._boxin = boxin
24772477 self ._boxout = boxout
24782478 self .set_children (boxin , boxout )
@@ -2516,7 +2516,7 @@ def __init__(self, boxout, **kwargs):
25162516 if not boxout .is_bbox :
25172517 raise ValueError ("'boxout' must be bbox" )
25182518
2519- Affine2DBase .__init__ (self , ** kwargs )
2519+ super () .__init__ (** kwargs )
25202520 self ._boxout = boxout
25212521 self .set_children (boxout )
25222522 self ._mtx = None
@@ -2570,7 +2570,7 @@ def __init__(self, boxin, **kwargs):
25702570 if not boxin .is_bbox :
25712571 raise ValueError ("'boxin' must be bbox" )
25722572
2573- Affine2DBase .__init__ (self , ** kwargs )
2573+ super () .__init__ (** kwargs )
25742574 self ._boxin = boxin
25752575 self .set_children (boxin )
25762576 self ._mtx = None
@@ -2601,7 +2601,7 @@ class ScaledTranslation(Affine2DBase):
26012601 have been transformed by *scale_trans*.
26022602 """
26032603 def __init__ (self , xt , yt , scale_trans , ** kwargs ):
2604- Affine2DBase .__init__ (self , ** kwargs )
2604+ super () .__init__ (** kwargs )
26052605 self ._t = (xt , yt )
26062606 self ._scale_trans = scale_trans
26072607 self .set_children (scale_trans )
@@ -2671,7 +2671,7 @@ def __init__(self, path, transform):
26712671 transform : `Transform`
26722672 """
26732673 cbook ._check_isinstance (Transform , transform = transform )
2674- TransformNode .__init__ (self )
2674+ super () .__init__ ()
26752675 self ._path = path
26762676 self ._transform = transform
26772677 self .set_children (transform )
0 commit comments