@@ -1641,6 +1641,9 @@ def inverted(self):
16411641 """
16421642 raise NotImplementedError ()
16431643
1644+ def __repr__ (self ):
1645+ return str (self )
1646+
16441647
16451648class TransformWrapper (Transform ):
16461649 """
@@ -1710,8 +1713,6 @@ def __str__(self):
17101713 .format (type (self ).__name__ ,
17111714 _indent_str (self ._child )))
17121715
1713- __repr__ = __str__
1714-
17151716 def frozen (self ):
17161717 return self ._child .frozen ()
17171718 frozen .__doc__ = Transform .frozen .__doc__
@@ -1943,8 +1944,6 @@ def __str__(self):
19431944 .format (type (self ).__name__ ,
19441945 _indent_str (self ._mtx )))
19451946
1946- __repr__ = __str__
1947-
19481947 @staticmethod
19491948 def from_values (a , b , c , d , e , f ):
19501949 """
@@ -2151,8 +2150,6 @@ def __str__(self):
21512150 return ("{}()"
21522151 .format (type (self ).__name__ ))
21532152
2154- __repr__ = __str__
2155-
21562153 def get_matrix (self ):
21572154 return self ._mtx
21582155 get_matrix .__doc__ = Affine2DBase .get_matrix .__doc__
@@ -2258,8 +2255,6 @@ def __str__(self):
22582255 _indent_str (self ._x ),
22592256 _indent_str (self ._y )))
22602257
2261- __repr__ = __str__
2262-
22632258 def transform_non_affine (self , points ):
22642259 if self ._x .is_affine and self ._y .is_affine :
22652260 return points
@@ -2370,8 +2365,6 @@ def __str__(self):
23702365 _indent_str (self ._x ),
23712366 _indent_str (self ._y )))
23722367
2373- __repr__ = __str__
2374-
23752368 def get_matrix (self ):
23762369 if self ._invalid :
23772370 if self ._x == self ._y :
@@ -2492,8 +2485,6 @@ def __str__(self):
24922485 _indent_str (self ._a ),
24932486 _indent_str (self ._b )))
24942487
2495- __repr__ = __str__
2496-
24972488 def transform_affine (self , points ):
24982489 return self .get_affine ().transform (points )
24992490 transform_affine .__doc__ = Transform .transform_affine .__doc__
@@ -2587,8 +2578,6 @@ def __str__(self):
25872578 _indent_str (self ._a ),
25882579 _indent_str (self ._b )))
25892580
2590- __repr__ = __str__
2591-
25922581 def get_matrix (self ):
25932582 if self ._invalid :
25942583 self ._mtx = np .dot (
@@ -2658,8 +2647,6 @@ def __str__(self):
26582647 _indent_str (self ._boxin ),
26592648 _indent_str (self ._boxout )))
26602649
2661- __repr__ = __str__
2662-
26632650 def get_matrix (self ):
26642651 if self ._invalid :
26652652 inl , inb , inw , inh = self ._boxin .bounds
@@ -2706,8 +2693,6 @@ def __str__(self):
27062693 .format (type (self ).__name__ ,
27072694 _indent_str (self ._boxout )))
27082695
2709- __repr__ = __str__
2710-
27112696 def get_matrix (self ):
27122697 if self ._invalid :
27132698 outl , outb , outw , outh = self ._boxout .bounds
@@ -2767,8 +2752,6 @@ def __str__(self):
27672752 .format (type (self ).__name__ ,
27682753 _indent_str (self ._boxin )))
27692754
2770- __repr__ = __str__
2771-
27722755 def get_matrix (self ):
27732756 if self ._invalid :
27742757 inl , inb , inw , inh = self ._boxin .bounds
@@ -2805,8 +2788,6 @@ def __str__(self):
28052788 .format (type (self ).__name__ ,
28062789 _indent_str (self ._t )))
28072790
2808- __repr__ = __str__
2809-
28102791 def get_matrix (self ):
28112792 if self ._invalid :
28122793 xt , yt = self ._scale_trans .transform_point (self ._t )
0 commit comments