Skip to content
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

stubtest: fix pos-only handling in overload resolution #16750

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Jan 6, 2024

I checked this pretty thoroughly against typeshed.

stub="""
class Bar:
@overload
def f1(self) -> int: ...
Copy link
Collaborator Author

@hauntsaninja hauntsaninja Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have instances of this in python/typeshed#11250, I don't think it's worth having stubtest complain that this isn't positional-only, at least for now

@JelleZijlstra JelleZijlstra merged commit 1fd29ac into python:master Jan 12, 2024
13 checks passed
@hauntsaninja hauntsaninja deleted the fix-stubtest branch January 12, 2024 03:41
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