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

Modified the isinstance type narrowing logic to retain a TypeVar wh… #6439

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

erictraut
Copy link
Collaborator

…en narrowing in the positive case and the value is not a constrained TypeVar. This addresses #6434.

…en narrowing in the positive case and the value is not a constrained TypeVar. This addresses #6434.
Copy link
Contributor

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

steam.py (https://github.com/Gobot1234/steam.py)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:934:18 - warning: Cannot access member "checks" for type "function"
+     Member "checks" is unknown (reportFunctionMemberAccess)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/commands.py:1019:21 - warning: Cannot access member "cooldown" for type "function"
+     Member "cooldown" is unknown (reportFunctionMemberAccess)
+   /tmp/mypy_primer/projects/steam.py/steam/ext/commands/converters.py:224:25 - warning: Cannot access member "special_converters" for type "function"
+     Member "special_converters" is unknown (reportFunctionMemberAccess)
- 8411 errors, 23 warnings, 0 informations 
+ 8411 errors, 26 warnings, 0 informations 

@erictraut erictraut merged commit f0aad20 into main Nov 14, 2023
11 checks passed
@erictraut erictraut deleted the issue6434 branch November 14, 2023 05:47
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