File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -586,10 +586,10 @@ def __init__(
586
586
self .min_value : minmax_typehint = kwargs .pop ("min_value" , None )
587
587
self .max_value : minmax_typehint = kwargs .pop ("max_value" , None )
588
588
589
- if not isinstance (self .min_value , minmax_typehint ) or self .min_value is not None :
590
- raise TypeError (f"Expected { minmax_types } for min_value, got \" { type (self .min_value ).__name__ } \" " )
591
- if not isinstance (self .max_value , minmax_typehint ) or self .max_value is not None :
592
- raise TypeError (f"Expected { minmax_types } for max_value, got \" { type (self .max_value ).__name__ } \" " )
589
+ if not isinstance (self .min_value , minmax_types ) or self .min_value is None :
590
+ raise TypeError (f"Expected { minmax_typehint } for min_value, got \" { type (self .min_value ).__name__ } \" " )
591
+ if not isinstance (self .max_value , minmax_types ) or self .max_value is None :
592
+ raise TypeError (f"Expected { minmax_typehint } for max_value, got \" { type (self .max_value ).__name__ } \" " )
593
593
594
594
def to_dict (self ) -> Dict :
595
595
as_dict = {
You can’t perform that action at this time.
0 commit comments