summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-03-02 05:29:46 (GMT)
committerGitHub <noreply@github.com>2022-03-02 05:29:46 (GMT)
commit20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9 (patch)
tree17093dd4d38fdaa45071ec145f11042579e108ee /Misc
parent6ddb09f35b922a3bbb59e408a3ca7636a6938468 (diff)
downloadcpython-20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9.zip
cpython-20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9.tar.gz
cpython-20a1c8ee4bcb1c421b7cca1f3f5d6ad7ce30a9c9.tar.bz2
bpo-46195: Do not add `Optional` in `get_type_hints` (GH-30304)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-12-30-21-38-51.bpo-46195.jFKGq_.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-12-30-21-38-51.bpo-46195.jFKGq_.rst b/Misc/NEWS.d/next/Library/2021-12-30-21-38-51.bpo-46195.jFKGq_.rst
new file mode 100644
index 0000000..03ea46c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-12-30-21-38-51.bpo-46195.jFKGq_.rst
@@ -0,0 +1,3 @@
+:func:`typing.get_type_hints` no longer adds ``Optional`` to parameters with
+``None`` as a default. This aligns to changes to PEP 484 in
+https://github.com/python/peps/pull/689