-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Stdlib: correct many parameter names #9815
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
Conversation
def __init__(self, lock: _LockLike | None = ..., *, ctx: BaseContext) -> None: ... | ||
def __init__(self, *, ctx: BaseContext) -> None: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like this parameter has ever existed at runtime (from what I can see); I'm not sure how it made its way into the stub
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Two cases where the old names are better than the new names
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Thanks for the review! |
I prepared this PR with the help of this script (which you'll notice has a very similar structure to
stubdefaulter
).