Skip to content

Commit 675e347

Browse files
authored
gh-96357: Improve typing.get_overloads coverage (#96358)
1 parent 1c01bd2 commit 675e347

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_typing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4416,6 +4416,9 @@ def some_other_func(): pass
44164416
other_overload = some_other_func
44174417
def some_other_func(): pass
44184418
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)), [])
44194422

44204423
# Make sure that after we clear all overloads, the registry is
44214424
# completely empty.

0 commit comments

Comments
 (0)