diff --git a/mypy/checker.py b/mypy/checker.py index fc8acb2478e2..17d393dba9a2 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -7563,7 +7563,7 @@ def get_deprecation_warning( overload = False deprecation: str | None = None for decorator in decorators: - if (isinstance(decorator, NameExpr) and (decorator.fullname in OVERLOAD_NAMES)): + if isinstance(decorator, NameExpr) and (decorator.fullname in OVERLOAD_NAMES): overload = True if deprecation is not None: self.msg.note("@overload should be placed before @deprecated", decorator)