[ty] Understand classes that inherit from subscripted Protocol[] as generic (#17832)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user