Skip to content

Commit 5485b6f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e37d706 commit 5485b6f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mypy/checkexpr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)