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
Relate to:https://github.com/python/cpython/blob/main/Lib/typing.py#L2102
_AnnotatedAlias should givename="Annotated" to _GenericAlias
The cpython main branch add the__getattr__ to define a different behaviour from _GenericAlias
I wonder if this is a bug.
To perform a runtime check, I can only usesys.version_info >= (3, 9) and isinstance(obj, _AnnotatedAlias)