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

Fix incompatible overrides of overloaded generics with self types by hauntsaninja · Pull Request #14882 · python/mypy · GitHub

Repository navigation

Fix incompatible overrides of overloaded generics with self types - #14882

Merged
JelleZijlstra merged 2 commits into
python:masterfrom
hauntsaninja:bindcheck
Mar 11, 2023
Merged

JelleZijlstra merged 2 commits into
python:masterfrom
hauntsaninja:bindcheck

Conversation

Copy link
Copy Markdown
Collaborator

Fixes #14866

Basically does the potential todo I'd mentioned in #14017

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/datastructures/mixins.pyi:83: error: Unused "type: ignore" comment
+ src/werkzeug/datastructures/headers.pyi:91: error: Unused "type: ignore" comment

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ bson/son.py: note: At top level:
+ bson/son.py:118: error: Unused "type: ignore" comment

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/_collections.py:269: error: Unused "type: ignore" comment

Copy link
Copy Markdown
Member

Nice to see this fixes more issues in real code!

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.

Incorrect incompatible override report with self type + overload + TypeVar with constraints

2 participants


Back | FazBrowse Home | New Git URL