File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3794,7 +3794,9 @@ def dangerous_comparison(
37943794 # We suppress the error for equality and container checks if there is a custom __eq__()
37953795 # method on either side. User defined (or even standard library) classes can define this
37963796 # to return True for comparisons between non-overlapping types.
3797- if (custom_special_method (left , "__eq__" ) or custom_special_method (right , "__eq__" )) and not identity_check :
3797+ if (
3798+ custom_special_method (left , "__eq__" ) or custom_special_method (right , "__eq__" )
3799+ ) and not identity_check :
37983800 return False
37993801
38003802 if prefer_literal :
Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ def add_invertible_flag(
906906 default = False ,
907907 strict_flag = True ,
908908 help = "Prohibit equality, identity, and container checks for non-overlapping types "
909- "(except `None`)" ,
909+ "(except `None`)" ,
910910 group = strictness_group ,
911911 )
912912
You can’t perform that action at this time.
0 commit comments