Skip to content
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

make type annotations on overload implementation signature optional #11388

Open
KotlinIsland opened this issue Oct 26, 2021 · 0 comments
Open

Comments

@KotlinIsland
Copy link
Contributor

KotlinIsland commented Oct 26, 2021

Feature
I want to be able to do this:

@overload
def foo(a: int) -> int: ...
@overload
def foo(a: str) -> str: ...
def foo(a): ...  # inferred as (a: int | str) -> int | str

I think I might develop RSI if I have to implement too many more overload signatures, making the type annotations optional on the implementation might ease my wrist pain a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants