microsoft / pyright

Static Type Checker for Python
Other
12.7k stars 1.35k forks source link

Fixed regression that results in a false positive when a traditional … #8303

Closed erictraut closed 1 week ago

erictraut commented 1 week ago

…type alias (not using PEP 695 syntax) defines a union and is then used as a second argument to an isinstance or issubclass call. This addresses #8302.

github-actions[bot] commented 1 week ago

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅