8000 gh-96357: Improve `typing.get_overloads` coverage by sobolevn · Pull Request #96358 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-96357: Improve typing.get_overloads coverage #96358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-96357: Improve typing.get_overloads coverage
  • Loading branch information
sobolevn committed Aug 28, 2022
commit d571b63726007d6f819ca1d4f75ddbbf0a4241dc
3 changes: 3 additions & 0 deletions Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4416,6 +4416,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