Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing.Annotated should document the __metadata__ field #97797

Closed
martindemello opened this issue Oct 3, 2022 · 1 comment
Closed

typing.Annotated should document the __metadata__ field #97797

martindemello opened this issue Oct 3, 2022 · 1 comment
Assignees
Labels
docs Documentation in the Doc dir topic-typing

Comments

@martindemello
Copy link
Contributor

martindemello commented Oct 3, 2022

Both help(typing.Annotated) and help(typing._AnnotatedAlias) should document the __metadata__ field; based on the comments in #89543 the field was meant to be public but was inadvertently omitted from the PEP and documentation.

Linked PRs

@martindemello martindemello added the docs Documentation in the Doc dir label Oct 3, 2022
@sobolevn sobolevn self-assigned this Apr 10, 2023
sobolevn added a commit to sobolevn/cpython that referenced this issue Apr 10, 2023
AlexWaygood added a commit that referenced this issue Apr 10, 2023
…Alias, Annotated}` (#103405)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 10, 2023
…otatedAlias, Annotated}` (pythonGH-103405)

(cherry picked from commit dc604a8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
miss-islington added a commit that referenced this issue Apr 10, 2023
…Alias, Annotated}` (GH-103405)

(cherry picked from commit dc604a8)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
warsaw pushed a commit to warsaw/cpython that referenced this issue Apr 11, 2023
…otatedAlias, Annotated}` (python#103405)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
aisk pushed a commit to aisk/cpython that referenced this issue Apr 18, 2023
…otatedAlias, Annotated}` (python#103405)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Kirill <80244920+Eclips4@users.noreply.github.com>
AlexWaygood added a commit to AlexWaygood/cpython that referenced this issue Jun 6, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jun 7, 2023
…105365)

(cherry picked from commit e26d296)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this issue Jun 7, 2023
…thonGH-105365).

(cherry picked from commit e26d296)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
AlexWaygood added a commit that referenced this issue Jun 7, 2023
… (#105448)

gh-97797: Improve documentation for typing.Annotated (GH-105365)
(cherry picked from commit e26d296)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
JelleZijlstra added a commit that referenced this issue Jun 7, 2023
…. (#105449)

(cherry picked from commit e26d296)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@AlexWaygood
Copy link
Member

Now documented in the docstring and in typing.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir topic-typing
Projects
None yet
Development

No branches or pull requests

4 participants