We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing.get_overloads
1 parent 103f26f commit 2e9c031Copy full SHA for 2e9c031
Lib/test/test_typing.py
@@ -4410,6 +4410,9 @@ def some_other_func(): pass
4410
other_overload = some_other_func
4411
def some_other_func(): pass
4412
self.assertEqual(list(get_overloads(some_other_func)), [other_overload])
4413
+ # Unrelated function still has no overloads:
4414
+ def not_overloaded(): pass
4415
+ self.assertEqual(list(get_overloads(not_overloaded)), [])
4416
4417
# Make sure that after we clear all overloads, the registry is
4418
# completely empty.
0 commit comments