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

Fixed bug that results in incorrect type isinstance or issubclass #8243

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

erictraut
Copy link
Collaborator

… type narrowing when using a type variable with an upper bound that includes a promotion type. This addresses #8238.

… type narrowing when using a type variable with an upper bound that includes a promotion type. This addresses #8238.
Copy link
Contributor

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

dd-trace-py (https://github.com/DataDog/dd-trace-py)
+   /tmp/mypy_primer/projects/dd-trace-py/ddtrace/internal/compat.py:198:18 - error: Cannot access attribute "decode" for class "memoryview*"
+     Attribute "decode" is unknown (reportAttributeAccessIssue)
- 11621 errors, 583 warnings, 0 informations 
+ 11622 errors, 583 warnings, 0 informations 

@erictraut erictraut merged commit 0572612 into main Jun 26, 2024
12 checks passed
@erictraut erictraut deleted the issue8238 branch June 26, 2024 23:30
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.

None yet

1 participant