[ty] Improve the display of various special-form types (#21775)

This commit is contained in:
Alex Waygood
2025-12-03 21:19:59 +00:00
committed by GitHub
parent 8ebecb2a88
commit 14fce0d440
20 changed files with 220 additions and 178 deletions

View File

@@ -80,7 +80,7 @@ class Foo(Protocol):
def f[T](self, v: T) -> T: ...
t = (Protocol, int)
reveal_type(t[0]) # revealed: typing.Protocol
reveal_type(t[0]) # revealed: <special form 'typing.Protocol'>
class Lorem(t[0]):
def f(self) -> int: ...