Skip to content

Commit a42b123

Browse files
committed
fix format
1 parent fe71ad6 commit a42b123

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mypy/checker.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7618,9 +7618,11 @@ def warn_deprecated(self, node: SymbolNode | None, context: Context) -> None:
76187618
"""Warn if deprecated."""
76197619
if isinstance(node, Decorator):
76207620
node = node.func
7621-
if isinstance(node, (FuncDef, OverloadedFuncDef, TypeInfo)) and (
7622-
(deprecated := node.deprecated) is not None
7623-
) and not self.is_typeshed_stub:
7621+
if (
7622+
isinstance(node, (FuncDef, OverloadedFuncDef, TypeInfo))
7623+
and ((deprecated := node.deprecated) is not None)
7624+
and not self.is_typeshed_stub
7625+
):
76247626
warn = self.msg.fail if self.options.report_deprecated_as_error else self.msg.note
76257627
warn(deprecated, context, code=codes.DEPRECATED)
76267628

0 commit comments

Comments
 (0)