summaryrefslogtreecommitdiff
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-04-18 17:13:21 +0300
committerGitHub <noreply@github.com>2020-04-18 17:13:21 +0300
commit7e64414f57b70dc5bc0ab19a3162a0735f9bfabf (patch)
tree89751f89c42a08b7335098b470ba6ddc395b184c /Doc/whatsnew
parentc606624af8d4cb3b4a052fb263bb983b3f87585b (diff)
downloadcpython-git-7e64414f57b70dc5bc0ab19a3162a0735f9bfabf.tar.gz
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 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 2b36b0f154..8147d8f185 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -142,6 +142,12 @@ Other Language Changes
grammar was much more restrictive. See :pep:`614` for details.
(Contributed by Brandt Bucher in :issue:`39702`.)
+* Improved help for the :mod:`typing` module. Docstrings are now shown for
+ all special forms and special generic aliases (like ``Union`` and ``List``).
+ Using :func:`help` with generic alias like ``List[int]`` will show the help
+ for the correspondent concrete type (``list`` in this case).
+ (Contributed by Serhiy Storchaka in :issue:`40257`.)
+
New Modules
===========