On Thu, 14 Apr 2022, 17:53 Markus Toivonen, <[email protected]>
wrote:
> Hello!
>
> Is it currently possible with Flake8 or any of its plugins to enforce the
> code to use keyword arguments in function calls, when the function is
> imported from a module/library?
>
If you want to enforce the use of keyword arguments, you can use keyword
only arguments:
def baz(*, baz):
...
can only be called as baz(baz=...)!
>
_______________________________________________
code-quality mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/code-quality.python.org/
Member address: [email protected]