Skip to content

Commit 2e9c031

Browse files
sobolevnmiss-islington
authored andcommitted
pythongh-96357: Improve typing.get_overloads coverage (pythonGH-96358)
(cherry picked from commit 675e347) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 103f26f commit 2e9c031

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
@@ -4410,6 +4410,9 @@ def some_other_func(): pass
44104410
other_overload = some_other_func
44114411
def some_other_func(): pass
44124412
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)), [])
44134416

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

0 commit comments

Comments
 (0)