FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stubtest: fix pos-only handling in overload resolution by hauntsaninja · Pull Request #16750 · python/mypy · GitHub

Repository navigation

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

Merged
JelleZijlstra merged 2 commits into
python:masterfrom
hauntsaninja:fix-stubtest
Jan 12, 2024
Merged

JelleZijlstra merged 2 commits into
python:masterfrom
hauntsaninja:fix-stubtest

Conversation

hauntsaninja commented Jan 6, 2024 •
edited
Loading

Copy link
Copy Markdown
Collaborator

I checked this pretty thoroughly against typeshed.

Comment thread mypy/test/teststubtest.py
stub="""
class Bar:
@overload
def f1(self) -> int: ...

hauntsaninja Jan 12, 2024 •
edited
Loading

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit 1fd29ac into python:master Jan 12, 2024
hauntsaninja deleted the fix-stubtest branch January 12, 2024 03:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL