"dag" is not a known attribute of module "networkx" #6507
Unanswered
AbdealiLoKo
asked this question in
Q&A
Replies: 1 comment 6 replies
-
My guess is this is because Pylance ships a bunch of bundled stubs and Pyright doesn't. You can read about the differences here: |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using python 3.9 and am seeing pyright throwing an error with networkx in CLI - but NOT in vscode.
I am unable to figure out what the difference is ! Any suggestions ?
Things I have tried:
useLibraryCodeForTypes: true
Here is a MRE file I am testing with:
And the CLI command:
But in vscode, there is no error (and intellisense and so on work fine)


And intellisense works too:
This is the pyright_config:
Versions:
Beta Was this translation helpful? Give feedback.
All reactions