File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8600,15 +8600,19 @@ def reduce_conditional_maps(
86008600def is_singleton_value (t : Type ) -> bool :
86018601 t = get_proper_type (t )
86028602 # TODO: check the type object thing
8603- ret = isinstance (t , LiteralType ) or t .is_singleton_type () or (isinstance (t , CallableType ) and t .is_type_obj ())
8603+ ret = (
8604+ isinstance (t , LiteralType )
8605+ or t .is_singleton_type ()
8606+ or (isinstance (t , CallableType ) and t .is_type_obj ())
8607+ )
86048608 # print("!!!", t, type(t), ret)
86058609 return ret
86068610
86078611
86088612def has_no_custom_eq_checks (t : Type ) -> bool :
8609- return not custom_special_method (
8610- t , "__eq__ " , check_all = False
8611- ) and not custom_special_method ( t , "__ne__" , check_all = False )
8613+ return not custom_special_method (t , "__eq__" , check_all = False ) and not custom_special_method (
8614+ t , "__ne__ " , check_all = False
8615+ )
86128616
86138617
86148618def is_type_call (expr : CallExpr ) -> bool :
You can’t perform that action at this time.
0 commit comments