mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
bpo-32226: PEP 560: improve typing module (#4906)
This PR re-designs the internal typing API using the new PEP 560 features. However, there are only few minor changes in the public API.
This commit is contained in:
parent
d57f26c753
commit
d911e40e78
5 changed files with 771 additions and 1640 deletions
|
@ -827,7 +827,7 @@ class TestDescriptions(unittest.TestCase):
|
|||
'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)')
|
||||
'class C\x08C(collections.abc.Mapping, typing.Generic)')
|
||||
|
||||
def test_builtin(self):
|
||||
for name in ('str', 'str.translate', 'builtins.str',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue