Make sure overload signatures work, see #1417

This commit is contained in:
Dave Halter
2019-12-07 00:30:21 +01:00
parent c582545628
commit 0474371f23
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
def with_overload(x, y: int) -> list:
pass

View 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: ...