[issue45380] help() appears confused about the module of typing.Annotated

2022-02-03 Thread Guido van Rossum
Guido van Rossum added the comment: It looks like __metadata__ was *meant* to be a public attribute, but somehow overseen when the PEP and docs were written. :-( I don't know anything about this class, really. -- ___ Python tracker

[issue45380] help() appears confused about the module of typing.Annotated

2022-02-03 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-10 Thread Alex Waygood
Alex Waygood added the comment: It actually appears as though there is no documented way to retrieve the metadata from an annotated alias. Is this intentional? The metadata is stored in a `__metadata__` attribute of a `typing._AnnotatedAlias` instance. But the `__metadata__` attribute is un

[issue45380] help() appears confused about the module of typing.Annotated

2021-10-05 Thread Alex Waygood
New submission from Alex Waygood : `help()` appears confused about the module of `typing.Annotated`. If you call `help()` on a parameterised "instance" of `typing.Annotated`, it will claim that `Annotated` belongs to whatever module the annotated type is from. Additionally, `help()` appears n