Skip to content

Commit

Permalink
Merge remote-tracking branch 'mypypy/feature/support_deprecated' into…
Browse files Browse the repository at this point in the history
… feature/support_deprecated
  • Loading branch information
tyralla committed Jul 4, 2024
2 parents f636024 + b527250 commit 63a725e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 63a725e

Please sign in to comment.