---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
---
B032.py:9:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
 7 | dct = {"a": 1}
 8 | 
 9 | dct["b"]: 2
   | ^^^^^^^^^^^ B032
10 | dct.b: 2
   |

B032.py:10:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
 9 | dct["b"]: 2
10 | dct.b: 2
   | ^^^^^^^^ B032
11 | 
12 | dct["b"]: "test"
   |

B032.py:12:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
10 | dct.b: 2
11 | 
12 | dct["b"]: "test"
   | ^^^^^^^^^^^^^^^^ B032
13 | dct.b: "test"
   |

B032.py:13:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
12 | dct["b"]: "test"
13 | dct.b: "test"
   | ^^^^^^^^^^^^^ B032
14 | 
15 | test = "test"
   |

B032.py:16:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
15 | test = "test"
16 | dct["b"]: test
   | ^^^^^^^^^^^^^^ B032
17 | dct["b"]: test.lower()
18 | dct.b: test
   |

B032.py:17:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
15 | test = "test"
16 | dct["b"]: test
17 | dct["b"]: test.lower()
   | ^^^^^^^^^^^^^^^^^^^^^^ B032
18 | dct.b: test
19 | dct.b: test.lower()
   |

B032.py:18:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
16 | dct["b"]: test
17 | dct["b"]: test.lower()
18 | dct.b: test
   | ^^^^^^^^^^^ B032
19 | dct.b: test.lower()
   |

B032.py:19:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
   |
17 | dct["b"]: test.lower()
18 | dct.b: test
19 | dct.b: test.lower()
   | ^^^^^^^^^^^^^^^^^^^ B032
20 | 
21 | # Do not flag below
   |
