You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@python/organization-owners, can you block @HACKED-need-HELP as a spammer, please? They seem to be posting bizarre messages like this in several Python-organisation repositories.
Bug report
Relate to: https://github.com/python/cpython/blob/main/Lib/typing.py#L2102
_AnnotatedAlias should give
name="Annotated"
to _GenericAliasThe cpython main branch add the
__getattr__
to define a different behaviour from _GenericAliasI wonder if this is a bug.
To perform a runtime check, I can only use
sys.version_info >= (3, 9) and isinstance(obj, _AnnotatedAlias)
The text was updated successfully, but these errors were encountered: