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
{{ message }}
Repository navigation
Type hints for mne.preprocessing.ICA() are narrower than their runtime behavior and documented usage. #13597
The runtime behavior and documentation allow a wider range of inputs than the current type annotations.
This causes false positives in static type checkers. Updating the type hints would align them with existing runtime behavior and documentation only, without modifying any runtime logic.
changed the title [-]Type hints for `mne.preprocessing.ICA()` and `mne.create_info()` are narrower than their runtime behavior and documented usage.[/-][+]Type hints for `mne.preprocessing.ICA()` are narrower than their runtime behavior and documented usage.[/+]on Jan 19, 2026
Activity
welcome commentedon Jan 18, 2026
Hello! 👋 Thanks for opening your first issue here! ❤️ We will try to get back to you soon. 🚴
[-]Type hints for `mne.preprocessing.ICA()` and `mne.create_info()` are narrower than their runtime behavior and documented usage.[/-][+]Type hints for `mne.preprocessing.ICA()` are narrower than their runtime behavior and documented usage.[/+]larsoner commentedon Jan 19, 2026
@orikanner our type hinting is still quite immature, a PR to improve it would be welcome!
orikanner commentedon Jan 19, 2026
Thanks! I’ll work on this.