Skip to content

groundwork for type-hinting mne/_fiff/* - #14152

Merged
larsoner merged 1 commit into
mne-tools:mainfrom
drammock:typing-groundwork
Aug 12, 2026
Merged

groundwork for type-hinting mne/_fiff/*#14152
larsoner merged 1 commit into
mne-tools:mainfrom
drammock:typing-groundwork

Conversation

@drammock

Copy link
Copy Markdown
Member

This PR splits the _safe_name_list helper function into separate write and read flavors, reflecting previous disjoint logic branches based on param operation="read"|"write"

This will simplify type-hinting of mne/_fiff/* and since it's an easy to understand and isolatable change, it made sense to do it as a separate PR

@larsoner larsoner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, there are going to be a few of these "split up a too-complicated function" things to fix along the way I think 😅

@larsoner
larsoner merged commit 7a220ab into mne-tools:main Aug 12, 2026
34 of 35 checks passed
@drammock
drammock deleted the typing-groundwork branch August 13, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants