---
source: crates/ruff/src/rules/pyupgrade/mod.rs
---
UP029.py:1:1: UP029 [*] Unnecessary builtin import: `*`
  |
1 | from builtins import *
  | ^^^^^^^^^^^^^^^^^^^^^^ UP029
2 | from builtins import ascii, bytes, compile
3 | from builtins import str as _str
  |
  = help: Remove unnecessary builtin import

ℹ Suggested fix
1   |-from builtins import *
2 1 | from builtins import ascii, bytes, compile
3 2 | from builtins import str as _str
4 3 | from six.moves import filter, zip, zip_longest

UP029.py:2:1: UP029 [*] Unnecessary builtin imports: `ascii`, `bytes`
  |
2 | from builtins import *
3 | from builtins import ascii, bytes, compile
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP029
4 | from builtins import str as _str
5 | from six.moves import filter, zip, zip_longest
  |
  = help: Remove unnecessary builtin import

ℹ Suggested fix
1 1 | from builtins import *
2   |-from builtins import ascii, bytes, compile
  2 |+from builtins import compile
3 3 | from builtins import str as _str
4 4 | from six.moves import filter, zip, zip_longest
5 5 | from io import open

UP029.py:4:1: UP029 [*] Unnecessary builtin imports: `filter`, `zip`
  |
4 | from builtins import ascii, bytes, compile
5 | from builtins import str as _str
6 | from six.moves import filter, zip, zip_longest
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UP029
7 | from io import open
8 | import io
  |
  = help: Remove unnecessary builtin import

ℹ Suggested fix
1 1 | from builtins import *
2 2 | from builtins import ascii, bytes, compile
3 3 | from builtins import str as _str
4   |-from six.moves import filter, zip, zip_longest
  4 |+from six.moves import zip_longest
5 5 | from io import open
6 6 | import io
7 7 | import six

UP029.py:5:1: UP029 [*] Unnecessary builtin import: `open`
  |
5 | from builtins import str as _str
6 | from six.moves import filter, zip, zip_longest
7 | from io import open
  | ^^^^^^^^^^^^^^^^^^^ UP029
8 | import io
9 | import six
  |
  = help: Remove unnecessary builtin import

ℹ Suggested fix
2 2 | from builtins import ascii, bytes, compile
3 3 | from builtins import str as _str
4 4 | from six.moves import filter, zip, zip_longest
5   |-from io import open
6 5 | import io
7 6 | import six
8 7 | import six.moves


