summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJakub Stasiak <jakub@stasiak.at>2020-02-05 01:10:19 (GMT)
committerGitHub <noreply@github.com>2020-02-05 01:10:19 (GMT)
commitcf5b109dbb39bcff1bc5b5d22036866d11de971b (patch)
treeb440ac6cb94a42445ea56fa0bdfd144545bc0e71 /Misc
parent89ae20b30e4543f379ee647c965eb46200556496 (diff)
downloadcpython-cf5b109dbb39bcff1bc5b5d22036866d11de971b.zip
cpython-cf5b109dbb39bcff1bc5b5d22036866d11de971b.tar.gz
cpython-cf5b109dbb39bcff1bc5b5d22036866d11de971b.tar.bz2
bpo-39491: Merge PEP 593 (typing.Annotated) support (#18260)
* bpo-39491: Merge PEP 593 (typing.Annotated) support PEP 593 has been accepted some time ago. I got a green light for merging this from Till, so I went ahead and combined the code contributed to typing_extensions[1] and the documentation from the PEP 593 text[2]. My changes were limited to: * removing code designed for typing_extensions to run on older Python versions * removing some irrelevant parts of the PEP text when copying it over as documentation and otherwise changing few small bits to better serve the purpose * changing the get_type_hints signature to match reality (parameter names) I wasn't entirely sure how to go about crediting the authors but I used my best judgment, let me know if something needs changing in this regard. [1] https://github.com/python/typing/blob/8280de241fd8c8afe727c7860254b753e383b360/typing_extensions/src_py3/typing_extensions.py [2] https://github.com/python/peps/blob/17710b879882454d55f82c2d44596e8e9f8e4bff/pep-0593.rst
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-01-29-22-47-12.bpo-39491.tdl17b.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-01-29-22-47-12.bpo-39491.tdl17b.rst b/Misc/NEWS.d/next/Library/2020-01-29-22-47-12.bpo-39491.tdl17b.rst
new file mode 100644
index 0000000..1dd3645
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-01-29-22-47-12.bpo-39491.tdl17b.rst
@@ -0,0 +1,3 @@
+Add :data:`typing.Annotated` and ``include_extras`` parameter to
+:func:`typing.get_type_hints` as part of :pep:`593`. Patch by Till
+Varoquaux, documentation by Till Varoquaux and Konstantin Kashin.