We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I put a default param in the function, but I cannot let param to be optional, I must to write two same function.
class Foo(object): @dispatch(str) def __init__(bar: str, baz: bool = True): print(bar, baz) @dispatch(str, bool) def __init__(bar: str, baz: bool = True): print(bar, baz)
this is my solution
The text was updated successfully, but these errors were encountered:
I would also be interested to know how to define default values
Sorry, something went wrong.
No branches or pull requests
I put a default param in the function, but I cannot let param to be optional, I must to write two same function.
this is my solution
The text was updated successfully, but these errors were encountered: