@@ -1101,7 +1101,7 @@ def __init__(self, bbox, transform, **kwargs):
11011101 bbox : `Bbox`
11021102 transform : `Transform`
11031103 """
1104- if not bbox . is_bbox :
1104+ if not getattr ( bbox , ' is_bbox' , False ) :
11051105 raise ValueError ("'bbox' is not a bbox" )
11061106 _api .check_isinstance (Transform , transform = transform )
11071107 if transform .input_dims != 2 or transform .output_dims != 2 :
@@ -1190,7 +1190,7 @@ def __init__(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs):
11901190 The locked value for y1, or None to leave unlocked.
11911191
11921192 """
1193- if not bbox . is_bbox :
1193+ if not getattr ( bbox , ' is_bbox' , False ) :
11941194 raise ValueError ("'bbox' is not a bbox" )
11951195
11961196 super ().__init__ (** kwargs )
@@ -2547,7 +2547,8 @@ def __init__(self, boxin, boxout, **kwargs):
25472547 Create a new `BboxTransform` that linearly transforms
25482548 points from *boxin* to *boxout*.
25492549 """
2550- if not boxin .is_bbox or not boxout .is_bbox :
2550+ if (not getattr (boxin , 'is_bbox' , False ) or
2551+ not getattr (boxout , 'is_bbox' , False )):
25512552 raise ValueError ("'boxin' and 'boxout' must be bbox" )
25522553
25532554 super ().__init__ (** kwargs )
@@ -2591,7 +2592,7 @@ def __init__(self, boxout, **kwargs):
25912592 Create a new `BboxTransformTo` that linearly transforms
25922593 points from the unit bounding box to *boxout*.
25932594 """
2594- if not boxout . is_bbox :
2595+ if not getattr ( boxout , ' is_bbox' , False ) :
25952596 raise ValueError ("'boxout' must be bbox" )
25962597
25972598 super ().__init__ (** kwargs )
@@ -2645,7 +2646,7 @@ class BboxTransformFrom(Affine2DBase):
26452646 is_separable = True
26462647
26472648 def __init__ (self , boxin , ** kwargs ):
2648- if not boxin . is_bbox :
2649+ if not getattr ( boxin , ' is_bbox' , False ) :
26492650 raise ValueError ("'boxin' must be bbox" )
26502651
26512652 super ().__init__ (** kwargs )
0 commit comments