Closed hoechenberger closed 11 months ago
I'm seeing something similar for mne.io.read_raw_fif()
, but not for mne.io.read_raw()
:
Can only be reproduced if working in a VS Code workspace that doesn't have the mne-python
folder open. E.g., do
code --new-window /tmp/mwe.py
As we've just discussed, this works for me... even in a different workspace.
It seems the problem was in fact related to some type stubs floating around somewhere, so most probably not a bug in MNE or VS Code per se!
Description of the problem
Pylance claims that
mne.datasets.sample.data_path()
is an unknown entity:Steps to reproduce
Link to data
No response
Expected results
Editor would offer auto-completion and docstrings
Actual results
Editor doesn't know about
data_path()
Additional information
This is on
main
. Problem has existed already before we moved to lazy loading. I tried getting to the bottom of this but I really don't understand what's going on here. No problems at runtime. Applies to all datasets, not onlysample
.