bpo-33967: singledispatch raises TypeError when no positional arguments#8184
bpo-33967: singledispatch raises TypeError when no positional arguments#8184methane merged 1 commit into
Conversation
|
I think this is too much. I think this is enough: if not args:
raise TypeError("singledispatch requires at least 1 positional argument") |
Sorry, something went wrong.
|
True, both |
Sorry, something went wrong.
|
Okay can I update this PR into suggested one? |
Sorry, something went wrong.
|
Updated! Please take a look! |
Sorry, something went wrong.
|
I believe singledispatch requires positional argument by design, intentionally. |
Sorry, something went wrong.
|
@methane |
Sorry, something went wrong.
|
I fixed it |
Sorry, something went wrong.
https://bugs.python.org/issue33967