Skip to content

Commit 8188bc4

Browse files
pre-commit-ci[bot]ericmarkmartin
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0f22268 commit 8188bc4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mypy/stubgenc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def get_annotation(key: str) -> str | None:
307307
arglist: list[ArgSig] = []
308308

309309
# Add the arguments to the signature
310-
def add_args(args, get_default_value: Callable[[int, str], object | None]):
310+
def add_args(args: list[str], get_default_value: Callable[[int, str], object | None]) -> None:
311311
for i, arg in enumerate(args):
312312
# Check if the argument has a default value
313313
if default_value := get_default_value(i, arg):

mypy/test/teststubgen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,10 +845,9 @@ class TestClassVariableCls:
845845
assert_equal(gen.get_imports().splitlines(), ["from typing import ClassVar"])
846846
assert_equal(output, ["class C:", " x: ClassVar[int] = ..."])
847847

848-
849848
def test_non_c_generate_signature_with_kw_only_args(self) -> None:
850849
class TestClass:
851-
def test(self, arg0, *, keyword_only : str, keyword_only_with_default : int = 7):
850+
def test(self, arg0, *, keyword_only: str, keyword_only_with_default: int = 7):
852851
pass
853852

854853
output: list[str] = []

0 commit comments

Comments
 (0)