Skip to content

Commit

Permalink
Added example for bad-builtin (#5993)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
  • Loading branch information
matusvalo and Pierre-Sassoulas committed Mar 28, 2022
1 parent 333d851 commit 19dc9a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/data/messages/b/bad-builtin/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numbers = list(map(lambda x: 2 * x, [1, 2, 3])) # [bad-builtin]
print(numbers)
2 changes: 2 additions & 0 deletions doc/data/messages/b/bad-builtin/good.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numbers = [2 * x for x in [1, 2, 3]]
print(numbers)

0 comments on commit 19dc9a6

Please sign in to comment.