Skip to content

Commit

Permalink
Backport test case from #python/cpython/96358 (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Aug 29, 2022
1 parent db79268 commit 9683c1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ def some_other_func(): pass
other_overload = some_other_func
def some_other_func(): pass
self.assertEqual(list(get_overloads(some_other_func)), [other_overload])
# Unrelated function still has no overloads:
def not_overloaded(): pass
self.assertEqual(list(get_overloads(not_overloaded)), [])

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

0 comments on commit 9683c1a

Please sign in to comment.