Skip to content

ENH add types for dataset classes (BrainData, Dataview, ...) - #669

Draft
kroq-gar78 wants to merge 10 commits into
types/01-03-04-infra-geometry-databasefrom
types/05-dataset-core
Draft

ENH add types for dataset classes (BrainData, Dataview, ...)#669
kroq-gar78 wants to merge 10 commits into
types/01-03-04-infra-geometry-databasefrom
types/05-dataset-core

Conversation

@kroq-gar78

@kroq-gar78 kroq-gar78 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This PR adds partial type support for the dataset classes. A rework of the dataset class hierarchy is likely necessary for full type support, but this PR should still be useful for end users.

This makes no behavior changes besides adding some type guards (which would have triggered runtime errors anyway).


Stack created with GitHub Stacks CLIGive Feedback 💬

The mapper/mapper.py and webgl/data.py/webgl/view.py hunks of this
original commit are owned by PR 6 and PR 9 respectively.
Consolidates the rest of PR 5's per-commit typing work (dataset/braindata.py,
dataset/views.py, dataset/view2D.py, dataset/viewRGB.py, dataset/__init__.py,
tests/test_dataset.py) into one commit rather than replaying the remaining
~15 original commits individually.
Ported from 9abb080 (types-data branch) / bb81c50a (types-easy); the rest of
that change (retyping Database.auxfile, fixing get_cache's hashlib bug) is
owned by PR 4 (5b3496d on types-01-03-04-infra-geometry-database), not here.
@kroq-gar78
kroq-gar78 force-pushed the types/05-dataset-core branch from 50911ec to a813aad Compare August 18, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant