Thanks to visit codestin.com Credit goes to github.com
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 1c01bd2 commit 675e347Copy full SHA for 675e347
1 file changed
Lib/test/test_typing.py
@@ -4416,6 +4416,9 @@ def some_other_func(): pass
4416
other_overload = some_other_func
4417
def some_other_func(): pass
4418
self.assertEqual(list(get_overloads(some_other_func)), [other_overload])
4419
+ # Unrelated function still has no overloads:
4420
+ def not_overloaded(): pass
4421
+ self.assertEqual(list(get_overloads(not_overloaded)), [])
4422
4423
# Make sure that after we clear all overloads, the registry is
4424
# completely empty.
0 commit comments