Skip to content

Commit 976a14c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6320da7 commit 976a14c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mypy/stubgenc.py

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

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

mypy/test/teststubgen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,9 @@ class TestClassVariableCls:
847847

848848
def test_non_c_generate_signature_with_kw_only_args(self) -> None:
849849
class TestClass:
850-
def test(self, arg0: str, *, keyword_only: str, keyword_only_with_default: int = 7) -> None:
850+
def test(
851+
self, arg0: str, *, keyword_only: str, keyword_only_with_default: int = 7
852+
) -> None:
851853
pass
852854

853855
output: list[str] = []

0 commit comments

Comments
 (0)