mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408)
This commit is contained in:
parent
f8a4c03ede
commit
762b9571c9
4 changed files with 10 additions and 5 deletions
|
@ -824,7 +824,7 @@ class TestDescriptions(unittest.TestCase):
|
|||
T = typing.TypeVar('T')
|
||||
class C(typing.Generic[T], typing.Mapping[int, str]): ...
|
||||
self.assertEqual(pydoc.render_doc(foo).splitlines()[-1],
|
||||
'f\x08fo\x08oo\x08o(data:List[Any], x:int)'
|
||||
'f\x08fo\x08oo\x08o(data: List[Any], x: int)'
|
||||
' -> Iterator[Tuple[int, Any]]')
|
||||
self.assertEqual(pydoc.render_doc(C).splitlines()[2],
|
||||
'class C\x08C(typing.Mapping)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue