PyCharm community edition 3.4.1 running for Python 2.7.8. Simple code:
def test(x):
print x
d={'test': test}
d['test'](5)
Gives
d['test'](5)
'Null is not callable'
In the shell this code executes error-free.
The built-in inspection seems to be oversensitive (or buggy if you will).
If you try (d['test'])(5)
then it won't complaint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With