-
Notifications
You must be signed in to change notification settings - Fork 65
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
Do not show Annotated
types in configuration options documentation
#911
Conversation
…[circle ds000248]
Annotated
types in configuration options documentation [circle ds000248]Annotated
types in configuration options documentation
We will lose some information here like the |
Yes but I don't think this stuff is very user-readable anyway, so I'd love to keep it out of this part of the docs. If we think we need to document it, we should add it to the docstring in "proper" words. Right now it's an implementation detail to help us with validation mostly, no? WDYT? |
Okay by me. Some of it is obvious anyway like people shouldn't pass an empty list for |
It's working … and makes me wonder: huh, the default here actually doesn't match the annotation – it's an empty list, which is in violation of the annotation, which demands 1–4 elements: ch_types: Annotated[Sequence[Literal["meg", "mag", "grad", "eeg"]], Len(1, 4)] = [] @larsoner Do you think we could change the default to |
Sure we could add this as an enhancement. At the moment it's not too bad since if users don't specify this they immediately get a clear error message saying they need to specify it (here I've removed
but |
Thanks @hoechenberger |
Looks like the |
Argh… I really totally lost track of how all that stuff works, I find our CircleCI config extremely confusing :( |
* upstream/main: change default for info to use for inverse mne-tools#905 (mne-tools#919) Improve documentation and config validation of `loose` and `depth` parameters; drop support for `loose=None` (mne-tools#915) enhance documentation of caching, continuation of mne-tools#914 (mne-tools#918) [pre-commit.ci] pre-commit autoupdate (mne-tools#917) Restructure configuration options documentation sections (mne-tools#914) Try to fix documentation deployment (mne-tools#913) Do not show `Annotated` types in configuration options documentation (mne-tools#911) Add number of subjects to grand-average report (cont'd) (mne-tools#910) MAINT: Ensure input changes cause output changes (mne-tools#904) Render type annotations in the documentation again (mne-tools#909)
I want to get rid of the
Annotated
bits e.g. here:and only include the "actual" type (the
Literal[...]
in this specific case).Before merging …
docs/source/changes.md
)