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 Jun 29, 2024
1 parent 6a9cddb commit 5d799d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mypy/stubgenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ def get_annotation(key: str) -> str | None:
arglist: list[ArgSig] = []

# Add the arguments to the signature
def add_args(args: list[str], get_default_value: Callable[[int, str], object | None]) -> None:
def add_args(
args: list[str], get_default_value: Callable[[int, str], object | None]
) -> None:
for i, arg in enumerate(args):
# Check if the argument has a default value
default_value = get_default_value(i, arg)
Expand Down
4 changes: 3 additions & 1 deletion mypy/test/teststubgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@ class TestClassVariableCls:

def test_non_c_generate_signature_with_kw_only_args(self) -> None:
class TestClass:
def test(self, arg0: str, *, keyword_only: str, keyword_only_with_default: int = 7) -> None:
def test(
self, arg0: str, *, keyword_only: str, keyword_only_with_default: int = 7
) -> None:
pass

output: list[str] = []
Expand Down

0 comments on commit 5d799d8

Please sign in to comment.