diff --git a/mypy/checker.py b/mypy/checker.py index 6d00ac822b97..8b7cd7b4f965 100644 --- a/mypy/checker.py +++ b/mypy/checker.py @@ -7563,7 +7563,7 @@ def get_deprecation_warning( overload = False deprecation = 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)