1 Comment
User's avatar
⭠ Return to thread
Belze's avatar

That's why this is already included as a linter rule in ruff (originally from flake8-boolean-trap)

https://docs.astral.sh/ruff/rules/boolean-type-hint-positional-argument/

Also with useful hint of making the boolean argument keyword-only

Expand full comment