mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
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.
This commit is contained in:
parent
c606624af8
commit
7e64414f57
5 changed files with 24 additions and 4 deletions
|
@ -1255,7 +1255,8 @@ cm(x) method of builtins.type instance
|
|||
X.attr.__doc__ = 'Custom descriptor'
|
||||
self.assertEqual(self._get_summary_lines(X.attr), """\
|
||||
<test.test_pydoc.TestDescriptions.test_custom_non_data_descriptor.<locals>.Descr object>
|
||||
Custom descriptor""")
|
||||
Custom descriptor
|
||||
""")
|
||||
|
||||
X.attr.__name__ = 'foo'
|
||||
self.assertEqual(self._get_summary_lines(X.attr), """\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue