-
Notifications
You must be signed in to change notification settings - Fork 78
Labels
featureNew feature or requestNew feature or requestgood first issueGood for first-time contributorsGood for first-time contributorsrefactoringSome code shall be redesignedSome code shall be redesigned
Milestone
Description
The following call will raise a confusing error:
a = bf.Adapter()
a.standardize("x")
>>> TypeError: Adapter.standardize() takes 1 positional argument but 2 were givenHowever, the intent is very clear: we only want to standardize x. The current way to do this is via an include list which is given as an explicit keyword argument:
a.standardize(include="x")However, this seems a little bit ugly. We could allow users to pass this as a positional argument as well. So long as none of the keyword-only arguments are defined, we default to turning the positional argument into the include list.
elseml and stefanradev93
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestgood first issueGood for first-time contributorsGood for first-time contributorsrefactoringSome code shall be redesignedSome code shall be redesigned
Type
Projects
Status
Done