diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2023-09-23 07:46:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 07:46:35 (GMT) |
commit | e8be0c9c5a7c2327b3dd64009f45ee0682322dcb (patch) | |
tree | 250854f1b2ae6587fdeb344dd24ea1022da0d159 /Lib/test/test_typing.py | |
parent | 62c7015e89cbdedb5218d4fedd45f971885f67a8 (diff) | |
download | cpython-e8be0c9c5a7c2327b3dd64009f45ee0682322dcb.zip cpython-e8be0c9c5a7c2327b3dd64009f45ee0682322dcb.tar.gz cpython-e8be0c9c5a7c2327b3dd64009f45ee0682322dcb.tar.bz2 |
gh-109653: `typing.py`: improve import time by creating soft-deprecated members on demand (#109651)
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 4d1c0f2..9e891f1 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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() |