---
source: crates/ruff_linter/src/rules/ruff/mod.rs
---
F401 [*] `exceptiongroup.ExceptionGroup` imported but unused
  --> RUF050_F401.py:12:32
   |
10 | # Then RUF050 removes the empty `if`, and F401 removes `sys`.
11 | if sys.version_info < (3, 11):
12 |     from exceptiongroup import ExceptionGroup
   |                                ^^^^^^^^^^^^^^
13 |
14 | # Already-empty block handled in a single pass by RUF050
   |
help: Remove unused import: `exceptiongroup.ExceptionGroup`
   |
11 | if sys.version_info < (3, 11):
   -     from exceptiongroup import ExceptionGroup
12 +     pass
13 |
   |

RUF050 [*] Empty `if` statement
  --> RUF050_F401.py:15:1
   |
14 |   # Already-empty block handled in a single pass by RUF050
15 | / if sys.version_info < (3, 11):
16 | |     pass
   | |________^
17 |
18 |   print(os.getcwd())
   |
help: Remove the `if` statement
   |
14 | # Already-empty block handled in a single pass by RUF050
   - if sys.version_info < (3, 11):
   -     pass
15 |
   |
