ruff
13b983c5 - [ty] disallow negative narrowing on SubclassOf types (#23598)

Commit
1 day ago
[ty] disallow negative narrowing on SubclassOf types (#23598) ## Summary We can't negatively narrow on an `isinstance` or `issubclass` check against a variable of type `type[X]`, because at runtime the value of the variable could be a subclass of `X`. ## Test Plan Added mdtest.
Author
Parents
Loading