We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a9cd3 commit 2ff8cf1Copy full SHA for 2ff8cf1
mypy/checker.py
@@ -7746,7 +7746,7 @@ def warn_deprecated_overload_item(
7746
if isinstance(item, Decorator) and isinstance(
7747
candidate := item.func.type, CallableType
7748
):
7749
- if (selftype is not None) and (not node.is_static):
+ if selftype is not None and not node.is_static:
7750
candidate = bind_self(candidate, selftype)
7751
if candidate == target:
7752
self.warn_deprecated(item.func, context)
0 commit comments