Replies: 2 comments 11 replies
-
|
Hi @omlnaut, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime. Similar Issues (FYI only, not solutions) The following issues may or may not be related to your report. They are provided for reference only, as they may describe similar symptoms or affect the same feature, but may not be the same issue.
The team will respond to your issue shortly. Please note this is a trial feature and may not be fully accurate. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or was incorrect, please give it a 👎. Your feedback helps us improve! |
Beta Was this translation helpful? Give feedback.
-
|
I believe this should be supported using separate folders for your notebooks. The folder can have its own pyrightconfig.json that can inherit from the root pyrightconfig.json but specify its own typechecking mode. Something like so: {
"extends": "../pyrightconfig.json",
"typeCheckingMode": "off"
}See this for more information: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In jupyter notebooks, I can set typeCheckingMode for individual cells via i.e.
# pyright: basic. Is it possible to do this once for a whole notebook? I tried adding a cell at the top of the notebook with that comment but it only works for its own cell.My usecase: I want strict type checking for my .py files. I have some .ipynb files mixed in too, but I only want basic type checking for those. Pyright does not allow me to configure two different type checking modes based on the file extension. I can only exclude all *.ipynb.py files, but that also disables things like auto imports (because unknown symbols are detected in the first place). Hence my idea to turn type checking to basic at notebook level.
Beta Was this translation helpful? Give feedback.
All reactions