---
source: crates/ruff/src/rules/flake8_comprehensions/mod.rs
---
C408.py:1:5: C408 [*] Unnecessary `tuple` call (rewrite as a literal)
  |
1 | t = tuple()
  |     ^^^^^^^ C408
2 | l = list()
3 | d1 = dict()
  |
  = help: Rewrite as a literal

ℹ Suggested fix
1   |-t = tuple()
  1 |+t = ()
2 2 | l = list()
3 3 | d1 = dict()
4 4 | d2 = dict(a=1)

C408.py:2:5: C408 [*] Unnecessary `list` call (rewrite as a literal)
  |
2 | t = tuple()
3 | l = list()
  |     ^^^^^^ C408
4 | d1 = dict()
5 | d2 = dict(a=1)
  |
  = help: Rewrite as a literal

ℹ Suggested fix
1 1 | t = tuple()
2   |-l = list()
  2 |+l = []
3 3 | d1 = dict()
4 4 | d2 = dict(a=1)
5 5 | d3 = dict(**d2)

C408.py:3:6: C408 [*] Unnecessary `dict` call (rewrite as a literal)
  |
3 | t = tuple()
4 | l = list()
5 | d1 = dict()
  |      ^^^^^^ C408
6 | d2 = dict(a=1)
7 | d3 = dict(**d2)
  |
  = help: Rewrite as a literal

ℹ Suggested fix
1 1 | t = tuple()
2 2 | l = list()
3   |-d1 = dict()
  3 |+d1 = {}
4 4 | d2 = dict(a=1)
5 5 | d3 = dict(**d2)
6 6 | 


