mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-109653: typing.py
: improve import time by creating soft-deprecated members on demand (#109651)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
This commit is contained in:
parent
62c7015e89
commit
e8be0c9c5a
3 changed files with 24 additions and 8 deletions
|
@ -9373,6 +9373,10 @@ class AllTests(BaseTestCase):
|
|||
self.assertIn('SupportsComplex', a)
|
||||
|
||||
def test_all_exported_names(self):
|
||||
# ensure all dynamically created objects are actualised
|
||||
for name in typing.__all__:
|
||||
getattr(typing, name)
|
||||
|
||||
actual_all = set(typing.__all__)
|
||||
computed_all = {
|
||||
k for k, v in vars(typing).items()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue