Skip to content

Commit 076d477

Browse files
committed
Remove unnecessary call (rewrite as a literal)
1 parent 545956a commit 076d477

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ ignore = [
174174
##################################################################################################
175175
"B008", # Do not perform function call `typer.Option` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
176176
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
177-
"C408", # Unnecessary `dict` call (rewrite as a literal)
178177
"FURB110", # Replace ternary `if` expression with `or` operator
179178
"FURB113", # Use `lines.extend((" " * self.indentation + "}", "}"))` instead of repeatedly calling `lines.append()`
180179
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups

tests/unit/sdk/test_topological_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
def test_topological_sort_empty():
7-
assert topological_sort(dict()) == []
7+
assert topological_sort({}) == []
88

99

1010
def test_topological_sort_with_cycle_raises_error():

0 commit comments

Comments
 (0)