---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
---
A004.py:1:16: A004 Import `sum` is shadowing a Python builtin
  |
1 | import some as sum
  |                ^^^ A004
2 | import float
3 | from some import other as int
  |

A004.py:2:8: A004 Import `float` is shadowing a Python builtin
  |
1 | import some as sum
2 | import float
  |        ^^^^^ A004
3 | from some import other as int
4 | from some import input, exec
  |

A004.py:3:27: A004 Import `int` is shadowing a Python builtin
  |
1 | import some as sum
2 | import float
3 | from some import other as int
  |                           ^^^ A004
4 | from some import input, exec
5 | from directory import new as dir
  |

A004.py:4:18: A004 Import `input` is shadowing a Python builtin
  |
2 | import float
3 | from some import other as int
4 | from some import input, exec
  |                  ^^^^^ A004
5 | from directory import new as dir
  |

A004.py:4:25: A004 Import `exec` is shadowing a Python builtin
  |
2 | import float
3 | from some import other as int
4 | from some import input, exec
  |                         ^^^^ A004
5 | from directory import new as dir
  |

A004.py:11:32: A004 Import `BaseExceptionGroup` is shadowing a Python builtin
   |
10 | if sys.version_info < (3, 11):
11 |     from exceptiongroup import BaseExceptionGroup, ExceptionGroup
   |                                ^^^^^^^^^^^^^^^^^^ A004
   |

A004.py:11:52: A004 Import `ExceptionGroup` is shadowing a Python builtin
   |
10 | if sys.version_info < (3, 11):
11 |     from exceptiongroup import BaseExceptionGroup, ExceptionGroup
   |                                                    ^^^^^^^^^^^^^^ A004
   |
