Skip to content

Commit 1e68e2e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 8ad7519 commit 1e68e2e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

flake8_pyi/visitor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2033,10 +2033,7 @@ def check_protocol_param_kinds(
20332033
pos_or_kw, errors.Y091.format(arg=pos_or_kw.arg, method=node.name)
20342034
)
20352035

2036-
def check_for_override(
2037-
self,
2038-
node: ast.FunctionDef | ast.AsyncFunctionDef
2039-
) -> None:
2036+
def check_for_override(self, node: ast.FunctionDef | ast.AsyncFunctionDef) -> None:
20402037
for deco in node.decorator_list:
20412038
if _is_override(deco):
20422039
self.error(deco, errors.Y068)

tests/override.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import typing
22
import typing as t
3-
import typing_extensions
43
from typing import override, override as over
54

5+
import typing_extensions
6+
67
class Foo:
78
def f(self) -> None: ...
89
def g(self) -> None: ...

0 commit comments

Comments
 (0)