Repository navigation
REVE: keep the resolved on_non_divisible in a str variable (mypy and ruff format after #1517) - #1519
Merged
bruAristimunha merged 2 commits intoNov 2, 2026
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the REVE type-checking fix.
No open issues 🎉
What changed in this PR
This PR fixes REVE’s type-checking regression after #1517 while preserving the default cropping behavior and warning for untiled windows.
Changes:
- Resolves optional
on_non_divisibleinto a string-valuedmodeused for validation, storage, and padding checks. - Applies the requested formatting adjustment.
- Adds a changelog entry documenting the typing fix.
| File | Description |
|---|---|
docs/whats_new.rst |
Documents the mypy fix and unchanged behavior. |
braindecode/models/reve.py |
Introduces the resolved mode variable and reformats the tiling check. |
Review effort: Balanced
bruAristimunha
added a commit
to bruAristimunha/braindecode
that referenced
this pull request
Nov 2, 2026
bruAristimunha
added a commit
that referenced
this pull request
Nov 2, 2026
…rop_last_window removal moved to 3.0 (#1520) * whats_new: Breaking changes in 2.0, corrected PR references; drop_last_window removal moves to 3.0 * whats_new: PR references from #1237 (NeuroRVQ, llms.txt, BrainTokenizer, BrainOmni, Deep4Net, AvgPool2dWithConv, TimeDistributed, Chomp1d, #1166), BaRISTA #1175 entry, MIRepNet (#1146) under the current section * whats_new: cite #1519
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1519 +/- ##
==========================================
+ Coverage 91.33% 91.34% +0.01%
==========================================
Files 170 170
Lines 22100 22105 +5
==========================================
+ Hits 20184 20192 +8
+ Misses 1916 1913 -3 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1517 was merged without CI, and pre-commit now fails on master in
braindecode/models/reve.py:arg-typeerrors (str | Nonepassed wherestris expected, lines 330, 339, 424 and 517);This PR:
on_non_divisibleinto a separatestrvariable (mode) and stores that onself.on_non_divisible;Behaviour is unchanged: unset still means
"crop"with aFutureWarningwhen the window is not tiled.Checked in a Voyager Job (
prcheck-reve, base a4de2dc):pre-commit run --fileson the changed files: mypy passes, and ruff format passes after the second commit;test_on_non_divisible.pyplustest_models.py -k "REVE or reve or non_divisible": 25 passed, 4 skipped;