[ty] Understand classes that inherit from subscripted Protocol[] as generic (#17832)

This commit is contained in:
Alex Waygood 2025-05-09 17:39:15 +01:00 committed by GitHub
parent 2370297cde
commit d1bb10a66b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 451 additions and 183 deletions

View file

@ -3,5 +3,5 @@
## Empty list
```py
reveal_type([]) # revealed: list
reveal_type([]) # revealed: list[Unknown]
```

View file

@ -3,5 +3,5 @@
## Basic set
```py
reveal_type({1, 2}) # revealed: set
reveal_type({1, 2}) # revealed: set[Unknown]
```