Skip to content

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Feb 25, 2023

I prepared this PR with the help of this script (which you'll notice has a very similar structure to stubdefaulter).


class Event:
def __init__(self, lock: _LockLike | None = ..., *, ctx: BaseContext) -> None: ...
def __init__(self, *, ctx: BaseContext) -> None: ...
Copy link
Member Author

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

@github-actions

This comment has been minimized.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a 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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2023

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit 257e287 into python:main Mar 4, 2023
@AlexWaygood AlexWaygood deleted the wrong-parameters branch March 4, 2023 09:53
@AlexWaygood
Copy link
Member Author

Thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants