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
Hey @sobolevn!
functools.singledispatch now supports using type annotations instead of passing an argument:
functools.singledispatch
@singledispatch def fun(arg, verbose=False): ... @fun.register def _(arg: int, verbose=False): ...
The old syntax still works, but in simple cases like here this helps reduce unnecessary repetition and, as a result, the code looks a bit cleaner.
Would you be interesting in accepting a PR implementing similar interface for _TypeClass.instance?
_TypeClass.instance
The text was updated successfully, but these errors were encountered:
I would love to!
Sorry, something went wrong.
Closes #136
90faab9
2568580
be13224
No branches or pull requests
Hey @sobolevn!
functools.singledispatch
now supports using type annotations instead of passing an argument:The old syntax still works, but in simple cases like here this helps reduce unnecessary repetition and, as a result, the code looks a bit cleaner.
Would you be interesting in accepting a PR implementing similar interface for
_TypeClass.instance
?The text was updated successfully, but these errors were encountered: