8000 [3.11] gh-96357: Improve `typing.get_overloads` coverage (GH-96358) (… · python/cpython@f418842 · GitHub
[go: up one dir, main page]

Skip to content

Commit f418842

Browse files
[3.11] gh-96357: Improve typing.get_overloads coverage (GH-96358) (#96371)
gh-96357: Improve `typing.get_overloads` coverage (GH-96358) (cherry picked from commit 675e347) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 94582bb commit f418842

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
@@ -4427,6 +4427,9 @@ def some_other_func(): pass
44274427
other_overload = some_other_func
44284428
def some_other_func(): pass
44294429
self.assertEqual(list(get_overloads(some_other_func)), [other_overload])
4430+
# Unrelated function still has no overloads:
4431+
def not_overloaded(): pass
4432+
self.assertEqual(list(get_overloads(not_overloaded)), [])
44304433

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

0 commit comments

Comments
 (0)
0