mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Make sure overload signatures work, see #1417
This commit is contained in:
2
test/examples/typing_overload/file.py
Normal file
2
test/examples/typing_overload/file.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def with_overload(x, y: int) -> list:
|
||||
pass
|
||||
8
test/examples/typing_overload/file.pyi
Normal file
8
test/examples/typing_overload/file.pyi
Normal file
@@ -0,0 +1,8 @@
|
||||
from typing import overload
|
||||
|
||||
|
||||
@overload
|
||||
def with_overload(x: int, y: int) -> float: ...
|
||||
|
||||
@overload
|
||||
def with_overload(x: str, y: list) -> float: ...
|
||||
Reference in New Issue
Block a user