8000 bpo-46195: Do not add `Optional` in `get_type_hints` by sobolevn · Pull Request #30304 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-46195: Do not add Optional in get_type_hints #30304

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

Merged
merged 6 commits into from
Mar 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add .. versionchanged information
  • Loading branch information
sobolevn authored Jan 10, 2022
commit 1cbe416594a4214ce5e6e96d0d27c0efa1a31f3f
4 changes: 4 additions & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,10 @@ Introspection helpers

.. versionchanged:: 3.9
Added ``include_extras`` parameter as part of :pep:`593`.

.. versionchanged:: 3.11
``Optional`` annotation is not added implicitly anymore
when ``None`` default is used for a function argument.

.. function:: get_args(tp)
.. function:: get_origin(tp)
Expand Down
0