---
source: crates/ruff_linter/src/rules/flake8_boolean_trap/mod.rs
---
FBT.py:4:5: FBT001 Boolean-typed positional argument in function definition
  |
2 |     posonly_nohint,
3 |     posonly_nonboolhint: int,
4 |     posonly_boolhint: bool,
  |     ^^^^^^^^^^^^^^^^ FBT001
5 |     posonly_boolstrhint: "bool",
6 |     /,
  |

FBT.py:5:5: FBT001 Boolean-typed positional argument in function definition
  |
3 |     posonly_nonboolhint: int,
4 |     posonly_boolhint: bool,
5 |     posonly_boolstrhint: "bool",
  |     ^^^^^^^^^^^^^^^^^^^ FBT001
6 |     /,
7 |     offset,
  |

FBT.py:10:5: FBT001 Boolean-typed positional argument in function definition
   |
 8 |     posorkw_nonvalued_nohint,
 9 |     posorkw_nonvalued_nonboolhint: int,
10 |     posorkw_nonvalued_boolhint: bool,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
11 |     posorkw_nonvalued_boolstrhint: "bool",
12 |     posorkw_boolvalued_nohint=True,
   |

FBT.py:11:5: FBT001 Boolean-typed positional argument in function definition
   |
 9 |     posorkw_nonvalued_nonboolhint: int,
10 |     posorkw_nonvalued_boolhint: bool,
11 |     posorkw_nonvalued_boolstrhint: "bool",
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
12 |     posorkw_boolvalued_nohint=True,
13 |     posorkw_boolvalued_nonboolhint: int = True,
   |

FBT.py:14:5: FBT001 Boolean-typed positional argument in function definition
   |
12 |     posorkw_boolvalued_nohint=True,
13 |     posorkw_boolvalued_nonboolhint: int = True,
14 |     posorkw_boolvalued_boolhint: bool = True,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
15 |     posorkw_boolvalued_boolstrhint: "bool" = True,
16 |     posorkw_nonboolvalued_nohint=1,
   |

FBT.py:15:5: FBT001 Boolean-typed positional argument in function definition
   |
13 |     posorkw_boolvalued_nonboolhint: int = True,
14 |     posorkw_boolvalued_boolhint: bool = True,
15 |     posorkw_boolvalued_boolstrhint: "bool" = True,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
16 |     posorkw_nonboolvalued_nohint=1,
17 |     posorkw_nonboolvalued_nonboolhint: int = 2,
   |

FBT.py:18:5: FBT001 Boolean-typed positional argument in function definition
   |
16 |     posorkw_nonboolvalued_nohint=1,
17 |     posorkw_nonboolvalued_nonboolhint: int = 2,
18 |     posorkw_nonboolvalued_boolhint: bool = 3,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
19 |     posorkw_nonboolvalued_boolstrhint: "bool" = 4,
20 |     *,
   |

FBT.py:19:5: FBT001 Boolean-typed positional argument in function definition
   |
17 |     posorkw_nonboolvalued_nonboolhint: int = 2,
18 |     posorkw_nonboolvalued_boolhint: bool = 3,
19 |     posorkw_nonboolvalued_boolstrhint: "bool" = 4,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FBT001
20 |     *,
21 |     kwonly_nonvalued_nohint,
   |

FBT.py:90:19: FBT001 Boolean-typed positional argument in function definition
   |
89 |     # FBT001: Boolean positional arg in function definition
90 |     def foo(self, value: bool) -> None:
   |                   ^^^^^ FBT001
91 |         pass
   |
