[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
35 changed files with 451 additions and 183 deletions

View File

@@ -785,7 +785,7 @@ from subexporter import *
# TODO: Should be `list[str]`
# TODO: Should we avoid including `Unknown` for this case?
reveal_type(__all__) # revealed: Unknown | list
reveal_type(__all__) # revealed: Unknown | list[Unknown]
__all__.append("B")