That's why this is already included as a linter rule in ruff (originally from flake8-boolean-trap)
docs.astral.sh/ruff/rul…
Also with useful hint of making the boolean argument keyword-only
https://docs.astral.sh/ruff/rules/boolean-type-hint-positional-argument/
For your security, we need to re-authenticate you.
Click the link we sent to , or click here to sign in.
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