Skip to content

Commit 9683c1a

Browse files
authored
Backport test case from #python/cpython/96358 (#71)
1 parent db79268 commit 9683c1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/test_typing_extensions.py

+3
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ def some_other_func(): pass
488488
other_overload = some_other_func
489489
def some_other_func(): pass
490490
self.assertEqual(list(get_overloads(some_other_func)), [other_overload])
491+
# Unrelated function still has no overloads:
492+
def not_overloaded(): pass
493+
self.assertEqual(list(get_overloads(not_overloaded)), [])
491494

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

0 commit comments

Comments
 (0)