---
source: crates/ruff_linter/src/rules/flake8_pie/mod.rs
snapshot_kind: text
---
PIE796.py:8:5: PIE796 Enum contains duplicate value: `"B"`
  |
6 |     A = "A"
7 |     B = "B"
8 |     C = "B"  # PIE796
  |     ^^^^^^^ PIE796
  |

PIE796.py:14:5: PIE796 Enum contains duplicate value: `2`
   |
12 |     A = 1
13 |     B = 2
14 |     C = 2  # PIE796
   |     ^^^^^ PIE796
   |

PIE796.py:20:5: PIE796 Enum contains duplicate value: `"2"`
   |
18 |     A = "1"
19 |     B = "2"
20 |     C = "2"  # PIE796
   |     ^^^^^^^ PIE796
   |

PIE796.py:26:5: PIE796 Enum contains duplicate value: `2.5`
   |
24 |     A = 1.0
25 |     B = 2.5
26 |     C = 2.5  # PIE796
   |     ^^^^^^^ PIE796
   |

PIE796.py:33:5: PIE796 Enum contains duplicate value: `False`
   |
31 |     B = True
32 |     C = False
33 |     D = False  # PIE796
   |     ^^^^^^^^^ PIE796
   |

PIE796.py:40:5: PIE796 Enum contains duplicate value: `None`
   |
38 |     B = 2
39 |     C = None
40 |     D = None  # PIE796
   |     ^^^^^^^^ PIE796
   |

PIE796.py:54:5: PIE796 Enum contains duplicate value: `2`
   |
52 |     A = 1
53 |     B = 2
54 |     C = 2  # PIE796
   |     ^^^^^ PIE796
   |

PIE796.py:71:5: PIE796 Enum contains duplicate value: `...`
   |
69 | class FakeEnum10(enum.Enum):
70 |     A = ...
71 |     B = ...  # PIE796
   |     ^^^^^^^ PIE796
72 |     C = ...  # PIE796
   |

PIE796.py:72:5: PIE796 Enum contains duplicate value: `...`
   |
70 |     A = ...
71 |     B = ...  # PIE796
72 |     C = ...  # PIE796
   |     ^^^^^^^ PIE796
   |

PIE796.py:79:5: PIE796 Enum contains duplicate value: `cast(SomeType, ...)`
   |
77 | class FakeEnum11(enum.Enum):
78 |     A = cast(SomeType, ...)
79 |     B = cast(SomeType, ...)  # PIE796
   |     ^^^^^^^^^^^^^^^^^^^^^^^ PIE796
80 |     C = cast(SomeType, ...)  # PIE796
   |

PIE796.py:80:5: PIE796 Enum contains duplicate value: `cast(SomeType, ...)`
   |
78 |     A = cast(SomeType, ...)
79 |     B = cast(SomeType, ...)  # PIE796
80 |     C = cast(SomeType, ...)  # PIE796
   |     ^^^^^^^^^^^^^^^^^^^^^^^ PIE796
   |
