8000 stubgen: Preserve simple defaults in function signatures by hamdanal · Pull Request #15355 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

stubgen: Preserve simple defaults in function signatures #15355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 27, 2023
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 27, 2023
commit 4011c16c40f45c1cdf45c56a6d5ba4b365561ccd
7 changes: 6 additions & 1 deletion mypy/stubdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ class ArgSig:
"""Signature info for a single argument."""

def __init__(
self, name: str, type: str | None = None, *, default: bool = False, default_value: str = "..."
self,
name: str,
type: str | None = None,
*,
default: bool = False,
default_value: str = "...",
) -> None:
self.name = name
self.type = type
Expand Down
0