From 3a3fe4d601153c53fa741893abf2ab0f11412566 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sun, 4 Dec 2022 13:52:20 -0600 Subject: [PATCH] Require func to be positional-only. --- flow/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/project.py b/flow/project.py index 2cd448e4f..a5646794d 100644 --- a/flow/project.py +++ b/flow/project.py @@ -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 ):