Skip to content

Commit

Permalink
Fix linter error, update test data file
Browse files Browse the repository at this point in the history
  • Loading branch information
dosisod committed Dec 22, 2023
1 parent 1ef490b commit 7d712f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion refurb/checks/readability/use_func_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
LambdaExpr,
ListExpr,
NameExpr,
RefExpr,
ReturnStmt,
TupleExpr,
RefExpr,
)

from refurb.checks.common import stringify
Expand Down
13 changes: 7 additions & 6 deletions test/data/err_111.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
test/data/err_111.py:7:1 [FURB111]: Replace `lambda: print()` with `print`
test/data/err_111.py:8:1 [FURB111]: Replace `lambda x: bool(x)` with `bool`
test/data/err_111.py:9:1 [FURB111]: Replace `lambda x, y: f(x, y)` with `f`
test/data/err_111.py:11:1 [FURB111]: Replace `lambda: []` with `list`
test/data/err_111.py:12:1 [FURB111]: Replace `lambda: {}` with `dict`
test/data/err_111.py:13:1 [FURB111]: Replace `lambda: ()` with `tuple`
test/data/err_111.py:9:1 [FURB111]: Replace `lambda: print()` with `print`
test/data/err_111.py:10:1 [FURB111]: Replace `lambda x: bool(x)` with `bool`
test/data/err_111.py:11:1 [FURB111]: Replace `lambda x, y: f(x, y)` with `f`
test/data/err_111.py:13:1 [FURB111]: Replace `lambda: []` with `list`
test/data/err_111.py:14:1 [FURB111]: Replace `lambda: {}` with `dict`
test/data/err_111.py:15:1 [FURB111]: Replace `lambda: ()` with `tuple`
test/data/err_111.py:17:1 [FURB111]: Replace `lambda x: mod.cast(x)` with `mod.cast`

0 comments on commit 7d712f9

Please sign in to comment.