Skip to content

Commit e95bd50

Browse files
nelfinPierre-Sassoulas
authored andcommitted
Add regression test of not-callable false-positive
Ref pylint-dev/astroid#946 (comment)
1 parent 82265bb commit e95bd50

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)