Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve 'Problem' section in Visual Studio Code #62

Open
astr0gator opened this issue Feb 1, 2023 · 2 comments
Open

Solve 'Problem' section in Visual Studio Code #62

astr0gator opened this issue Feb 1, 2023 · 2 comments

Comments

@astr0gator
Copy link

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants