Skip to content

Commit

Permalink
Require func to be positional-only.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice authored Dec 4, 2022
1 parent f13b595 commit 3a3fe4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def __call__(self, func=None, /, *, directives=None):
return functools.partial(self._internal_call, directives=directives)
return self._internal_call(func, directives=directives)

def _internal_call(self, func, *, directives):
def _internal_call(self, func, /, *, directives):
if not any(
func == op_func for _, op_func in self._project._OPERATION_FUNCTIONS
):
Expand Down

0 comments on commit 3a3fe4d

Please sign in to comment.