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

Is set of types supported? #11

Open
yakovkeselman opened this issue Feb 5, 2017 · 1 comment
Open

Is set of types supported? #11

yakovkeselman opened this issue Feb 5, 2017 · 1 comment

Comments

@yakovkeselman
Copy link

This is really a question, not an issue: is there a way to implement a type-annotated function that takes arguments of different but compatible types, such as "int" and "float"? I was thinking of the set syntax, such as:

@typechecked def f(x: {int, float}): return x*2

Thank you!

@ceronman
Copy link
Owner

Hi! this project is not maintained anymore. For a better alternative, look at the MyPy project: http://mypy-lang.org/

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

No branches or pull requests

2 participants