Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
fromtypingimportAnyclassFoo(Any): ...print(repr(Foo))# => typing.Any not <class '__main__.Foo'> as I would expect
I believe
Lines 495 to 496 ine8259e0
| def__repr__(self): | |
| return"typing.Any" |
def__repr__(self):ifselfisAny:return"typing.Any"returnsuper().__repr__()
Your environment
- CPython versions tested on: 3.11 and 3.12
- Operating system and architecture: macOS