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 committed Apr 21, 2021
1 parent 1e1e60d commit a16fbfb
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 a16fbfb

Please sign in to comment.