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
@typedispatch def f_td_test(x:int, y:int=10): return x*y test_eq(f_td_test(3,2), 6) test_eq(f_td_test(3), 30)
Errs out:
--------------------------------------- TypeErrorTraceback (most recent call last) <ipython-input-34-6e7b98db6be2> in <module> 3 4 test_eq(f_td_test(3,2), 6) ----> 5 test_eq(f_td_test(3), 30) <ipython-input-12-9fc191b1d495> in __call__(self, *args, **kwargs) 34 if not f: return args[0] 35 if self.inst is not None: f = MethodType(f, self.inst) ---> 36 return f(*args, **kwargs) 37 38 def __get__(self, inst, owner): TypeError: f_td_test() missing 1 required positional argument: 'y'
The text was updated successfully, but these errors were encountered:
Are you interested enough in this to have a go at fixing it? Because I'm not likely to, unless I really need it... ;)
Sorry, something went wrong.
Closing this since we have a workaround.
No branches or pull requests
Errs out:
The text was updated successfully, but these errors were encountered: