Skip to content

Commit 39d56bf

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/checker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4974,9 +4974,7 @@ def check_return_stmt(self, s: ReturnStmt) -> None:
49744974
elif (
49754975
isinstance(typ, Instance)
49764976
and typ.type.fullname == "builtins._NotImplementedType"
4977-
and (
4978-
(defn.name in BINARY_MAGIC_METHODS or defn.name == "__subclasshook__")
4979-
)
4977+
and (defn.name in BINARY_MAGIC_METHODS or defn.name == "__subclasshook__")
49804978
):
49814979
return
49824980
else:

0 commit comments

Comments
 (0)