alexmojaki/snoop

Solve 'Problem' section in Visual Studio Code

Opened this issue · 2 comments

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.

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.

Fair. I tried both approaches, now I got Expected function or class declaration after decorator 😄