mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-28 10:50:20 +00:00
## Summary - Close #7487 In the spirit of `flake8-boolean-trap`, any positional argument that can accept a boolean should raise `FBT001`. Raise `FBT001` for all annotations that accept booleans (e.g. `Optional[bool]`, `Union[int, bool]`). ## Test Plan Add a fixture, with an annotation using `|`, `Optional`, and `Union`, and containing a boolean. |
||
|---|---|---|
| .. | ||
| resources/test | ||
| src | ||
| Cargo.toml | ||