summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-18 14:13:21 (GMT)
committerGitHub <noreply@github.com>2020-04-18 14:13:21 (GMT)
commit7e64414f57b70dc5bc0ab19a3162a0735f9bfabf (patch)
tree89751f89c42a08b7335098b470ba6ddc395b184c /Misc
parentc606624af8d4cb3b4a052fb263bb983b3f87585b (diff)
downloadcpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.zip
cpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.tar.gz
cpython-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.tar.bz2
bpo-40257: Improve help for the typing module (GH-19546)
* Show docstring for special forms. * Show docstring for special generic aliases. * Show documentation for __origin__ for generic aliases.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst b/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst
new file mode 100644
index 0000000..6ed094a
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-04-18-10-52-15.bpo-40257.lv4WTq.rst
@@ -0,0 +1,4 @@
+Improved help for the :mod:`typing` module. Docstrings are now shown for all
+special forms and special generic aliases (like ``Union`` and ``List``).
+Using ``help()`` with generic alias like ``List[int]`` will show the help
+for the correspondent concrete type (``list`` in this case).