Solve 'Problem' section in Visual Studio Code
astr0gator opened this issue · 2 comments
astr0gator commented
The lib is fantastic, thanks.
One tiny thing. Is it possible to solve 'Problems' section in Visual Studio Code? Now it gives me 'Module is not callable'. Persists regardless of using install
or shortcuts.
Maybe I do something wrong?
Thank you once again.
alexmojaki commented
You're not doing anything wrong, these are magic tricks from snoop that look strange to automated linters. To avoid 'Module is not callable', do one of these:
import snoop
@snoop.snoop
or
from snoop import snoop
@snoop
install
will make it possible to use snoop
without importing, but linters won't know that, so you'll get errors.
astr0gator commented
Fair. I tried both approaches, now I got Expected function or class declaration after decorator
😄