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

Issue6335 #6357

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Issue6335 #6357

merged 3 commits into from
Nov 7, 2023

Conversation

erictraut
Copy link
Collaborator

No description provided.

…ize and parse a binary (native) library file. This led to a crash in some cases. This addresses microsoft/pylance-release#5090.
…ethod returns `Self` for a generic class and the type variable is invariant. This addresses #6335.
Copy link
Contributor

github-actions bot commented Nov 7, 2023

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

bidict (https://github.com/jab/bidict)
- /tmp/mypy_primer/projects/bidict/bidict/_base.py
-   /tmp/mypy_primer/projects/bidict/bidict/_base.py:203:24 - error: Cannot assign member "_invweak" for type "BidictBase[VT@BidictBase, KT@BidictBase]"
-     Type "ref" cannot be assigned to type "ReferenceType[BidictBase[KT@BidictBase, VT@BidictBase]] | None"
-       "ref" is incompatible with "ReferenceType[BidictBase[KT@BidictBase, VT@BidictBase]]"
-         Type parameter "_T@ReferenceType" is invariant, but "Self@BidictBase[KT@BidictBase, VT@BidictBase]" is not the same as "BidictBase[KT@BidictBase, VT@BidictBase]"
-       "ref" is incompatible with "None" (reportGeneralTypeIssues)
- 12 errors, 0 warnings, 0 informations 
+ 11 errors, 0 warnings, 0 informations 

Tanjun (https://github.com/FasterSpeeding/Tanjun)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2271:27 - warning: Argument type is partially unknown
-     Argument corresponds to parameter "__function" in function "__new__"
-     Argument type is "(c: MenuCommand[Any, Unknown]) -> bool" (reportUnknownArgumentType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2271:20 - warning: Return type, "filter[MenuCommand[Any, Unknown]]", is partially unknown (reportUnknownVariableType)
-   /tmp/mypy_primer/projects/Tanjun/tanjun/clients.py:2271:34 - warning: Type of parameter "c" is partially unknown (reportUnknownLambdaType)
- 2344 errors, 10518 warnings, 0 informations 
+ 2344 errors, 10515 warnings, 0 informations 

antidote (https://github.com/Finistere/antidote)
-   /tmp/mypy_primer/projects/antidote/src/antidote/core/_catalog.py:214:65 - error: Argument of type "ref" cannot be assigned to parameter "__catalog_ref" of type "ReferenceType[CatalogImpl]" in function "__init__"
-     "ref" is incompatible with "ReferenceType[CatalogImpl]"
-       Type parameter "_T@ReferenceType" is invariant, but "Self@CatalogImpl" is not the same as "CatalogImpl" (reportGeneralTypeIssues)
- 726 errors, 31 warnings, 0 informations 
+ 725 errors, 31 warnings, 0 informations 

@erictraut erictraut merged commit 742fc5e into main Nov 7, 2023
11 checks passed
@erictraut erictraut deleted the issue6335 branch November 7, 2023 02:27
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.

1 participant