diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-08-29 00:45:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 00:45:24 (GMT) |
commit | 675e3470ccf3804a36a9cd451b813e9bd655aeb3 (patch) | |
tree | f4b827d59f3be95a9c56ad83b2918fb9df649e39 | |
parent | 1c01bd28a0ec7e46e570a07d970c590b1809f8f1 (diff) | |
download | cpython-675e3470ccf3804a36a9cd451b813e9bd655aeb3.zip cpython-675e3470ccf3804a36a9cd451b813e9bd655aeb3.tar.gz cpython-675e3470ccf3804a36a9cd451b813e9bd655aeb3.tar.bz2 |
gh-96357: Improve `typing.get_overloads` coverage (#96358)
-rw-r--r-- | Lib/test/test_typing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 3f41014..ca7bd8e 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -4416,6 +4416,9 @@ class OverloadTests(BaseTestCase): other_overload = some_other_func def some_other_func(): pass self.assertEqual(list(get_overloads(some_other_func)), [other_overload]) + # Unrelated function still has no overloads: + def not_overloaded(): pass + self.assertEqual(list(get_overloads(not_overloaded)), []) # Make sure that after we clear all overloads, the registry is # completely empty. |