Skip to content

Commit a16fbfb

Browse files
committed
Add regression test of not-callable false-positive
Ref pylint-dev/astroid#946 (comment)
1 parent 1e1e60d commit a16fbfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# pylint: disable=missing-docstring
2+
3+
data = {
4+
'abc': None,
5+
}
6+
data['abc'] = lambda: print("Callback called")
7+
data['abc']() # false-positive `not-callable`

0 commit comments

Comments
 (0)