Skip to content

Commit 969cc0f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 754596c commit 969cc0f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mypy/stubtest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,10 @@ def _verify_arg_name(
654654
if is_dunder(function_name, exclude_special=True):
655655
return
656656

657-
if stub_arg.variable.name == runtime_arg.name or stub_arg.variable.name.removeprefix("__") == runtime_arg.name:
657+
if (
658+
stub_arg.variable.name == runtime_arg.name
659+
or stub_arg.variable.name.removeprefix("__") == runtime_arg.name
660+
):
658661
return
659662

660663
nonspecific_names = {"object", "args"}

mypy/test/teststubtest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): pass
355355
error="dunder_name_bad",
356356
)
357357

358-
359358
@collect_cases
360359
def test_arg_kind(self) -> Iterator[Case]:
361360
yield Case(

0 commit comments

Comments
 (0)