Skip to content

Commit

Permalink
Add regression test of not-callable false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
nelfin authored and Pierre-Sassoulas committed May 6, 2022
1 parent 30020b3 commit f7725b7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pylint: disable=missing-docstring

data = {
'abc': None,
}
data['abc'] = lambda: print("Callback called")
data['abc']() # false-positive `not-callable`

0 comments on commit f7725b7

Please sign in to comment.