Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent e182161 commit 5127b13
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,9 +1062,7 @@ def visit_func_def(self, defn: FuncDef) -> None:
with self.tscope.function_scope(defn):
self._visit_func_def(defn)
if (typ := defn.type) is not None:
typ.accept(
InstanceDeprecatedVisitor(typechecker=self, context=defn, ignore=defn.info)
)
typ.accept(InstanceDeprecatedVisitor(typechecker=self, context=defn, ignore=defn.info))

def _visit_func_def(self, defn: FuncDef) -> None:
"""Type check a function definition."""
Expand Down

0 comments on commit 5127b13

Please sign in to comment.