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 e182161 commit 5127b13Copy full SHA for 5127b13
mypy/checker.py
@@ -1062,9 +1062,7 @@ def visit_func_def(self, defn: FuncDef) -> None:
1062
with self.tscope.function_scope(defn):
1063
self._visit_func_def(defn)
1064
if (typ := defn.type) is not None:
1065
- typ.accept(
1066
- InstanceDeprecatedVisitor(typechecker=self, context=defn, ignore=defn.info)
1067
- )
+ typ.accept(InstanceDeprecatedVisitor(typechecker=self, context=defn, ignore=defn.info))
1068
1069
def _visit_func_def(self, defn: FuncDef) -> None:
1070
"""Type check a function definition."""
0 commit comments