-
Notifications
You must be signed in to change notification settings - Fork 1
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
How are you supposed to use this? #10
Comments
Step 1: Make Sure Pyright Recognizes the Stubs. |
Sorry I don't use Pyright so I can't help. This is a problem with how you use Pyright as far as I understand (I use MVSC and MyPy for example, and everything is working as expected). If you think there is a specific problem with pynetbox-stubs, let me know, otherwise I will close this issue. |
Hello, Yeah I'm thinking it has to be something with Pyright. Doing |
Sure about this? this package only installs a |
Sorry, worded it wrong. It doesn't overwrite the whole module but pyright detects |
I am closing this issue now as agreed - but if you find a problem with this library please do open an issue. |
There was no discussion area to ask this so my apologies.
I am using basedpyright and am struggling to get this to work.
This is my pyproject.toml:
And this is the output of
uv pip list
:Importing the module with
import pynetbox_stubs
orimport pynetbox-stubs
does not work, I get a ModuleNotFoundError.I know that the module is "there", because I was able to import types using code actions, and I wasn't before, but the module that was imported was
pynetbox._gen.definitions
. Now all of a sudden my compiler isn't accepting that either and I can't get pyright to ignore it. Help please?The text was updated successfully, but these errors were encountered: