You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'll have to check to see if the .pyi file fixes this, too. If not we should raise an issue on the lazy_loader tracker after checking to see if there already is one. Seems like a caveat that should definitely be listed if it's indeed a drawback with no workaround (e.g., waiting on a vscode fix that might never come)
I can take a look at this later today or tomorrow.
I also wanted to ask which approach we're planning to take here. We could add .pyi files inside MNE-Python, or we could add stubs to typeshed – and also slowly start adding type annotations there. I've been wanting to do that for a long time and started (and stopped) many times before.
Just to add, lazy loading currently also breaks the VS Code Python debugger (debugpy). It just throws an AttributeError and exits.
Upon further inspection, this issue might actually be unrelated. I'd need to do further research to pinpoint the problem, but for now I believe it's a separate issue on my machine and not related to lazy loading.
Activity
hoechenberger commentedon Oct 2, 2023
Just to add, lazy loading currently also breaks the VS Code Python debugger (debugpy). It just throws an
AttributeErrorand exits.larsoner commentedon Oct 2, 2023
We'll have to check to see if the
.pyifile fixes this, too. If not we should raise an issue on thelazy_loadertracker after checking to see if there already is one. Seems like a caveat that should definitely be listed if it's indeed a drawback with no workaround (e.g., waiting on a vscode fix that might never come)hoechenberger commentedon Oct 2, 2023
I can take a look at this later today or tomorrow.
I also wanted to ask which approach we're planning to take here. We could add
.pyifiles inside MNE-Python, or we could add stubs totypeshed– and also slowly start adding type annotations there. I've been wanting to do that for a long time and started (and stopped) many times before.hoechenberger commentedon Oct 2, 2023
Also see this approach for resolving the problem without adding
.pyifiles:microsoft/pylance-release#474 (comment)
hoechenberger commentedon Oct 2, 2023
Upon further inspection, this issue might actually be unrelated. I'd need to do further research to pinpoint the problem, but for now I believe it's a separate issue on my machine and not related to lazy loading.
larsoner commentedon Oct 2, 2023
To me it makes sense to have
.pyito be part of this repo rather than live intypesheddrammock commentedon Oct 2, 2023
great, I'll remove myself and assign you 🙏🏻