-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
enhancementEnhances DVCEnhances DVCp3-nice-to-haveIt should be done this or next sprintIt should be done this or next sprintrefactoringFactoring and re-factoringFactoring and re-factoring
Description
Details from: #1818 (comment)
The last thing to address is using
kwargsonly onapi.pymodule.This is how it looks like:
>>> def hello(*, name='world'): print('hello', name)
>>> hello()
"hello world"
>>> hello("people")
TypeError: hello() takes 0 positional arguments but 1 was givenIt makes the interface more explicit.
To make it work you only need to put an asterisk before the keyword arguments.
Metadata
Metadata
Assignees
Labels
enhancementEnhances DVCEnhances DVCp3-nice-to-haveIt should be done this or next sprintIt should be done this or next sprintrefactoringFactoring and re-factoringFactoring and re-factoring