Skip to content

refactor(lightning)!: remove MultiloaderLifecycle, it lives in ratiopath - #13

Merged
matejpekar merged 2 commits into
masterfrom
claude/multiloader-from-ratiopath
Oct 21, 2026
Merged

matejpekar merged 2 commits into
masterfrom
claude/multiloader-from-ratiopath

Conversation

@vejtek

@vejtek vejtek commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

The callback moved to ratiopath in RationAI/ratiopath#56 and was released in ratiopath 1.5.0. Following @matejpekar's review, mlkit no longer defines or re-exports it.

  • The rationai.mlkit.lightning.callbacks package is removed (it contained only MultiloaderLifecycle). Breaking change: import it as from ratiopath.lightning.callbacks import MultiloaderLifecycle.
  • Dependency ratiopath>=1.4.2 → ratiopath>=1.5.0, without the lightning extra (mlkit depends on lightning directly). Every mlkit environment therefore has the class under its new import path. uv.lock updated (ratiopath 1.4.2 → 1.5.0).
  • Ruff check and format pass. MyPy on master already reports 18 errors; this PR only removes code.

Known users of the old import path: carcinoma-binary-classification-methods (7 callbacks; its uv.lock pins an older mlkit, so nothing breaks until it upgrades; its maintainer gets a note on Slack) and stain-normalization (still on the archived GitLab mlkit 0.3.1, unaffected).

DEV-161. Prepared by Claude for @vejtek; not merged by the agent.

The callback moved to ratiopath 1.5.0 (ratiopath[lightning]). mlkit keeps
the old import paths as a re-export, so projects that import it from mlkit
keep working and get the same class.
@vejtek
vejtek requested review from a team, Adames4 and matejpekar October 20, 2026 14:47
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5640dc3e-91a7-4fba-8ea5-990355e8b5cc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@matejpekar matejpekar 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.

I would completely remove the definition of MultiloaderLifecycle from mlkit. Reexporting it from ratiopath is weird.

The callback moved to ratiopath 1.5.0 (ratiopath.lightning.callbacks).
mlkit no longer defines or re-exports it; the rationai.mlkit.lightning.callbacks
package is removed. mlkit requires ratiopath>=1.5.0, so every mlkit
environment already has the class under its new import path.

BREAKING CHANGE: import MultiloaderLifecycle from ratiopath.lightning.callbacks.
@vejtek vejtek changed the title refactor(lightning): take MultiloaderLifecycle from ratiopath refactor(lightning)!: remove MultiloaderLifecycle, it lives in ratiopath Oct 20, 2026
@vejtek
vejtek requested a review from matejpekar October 20, 2026 21:34
@matejpekar
matejpekar merged commit fd2a8d4 into master Oct 21, 2026
2 of 3 checks passed
@matejpekar
matejpekar deleted the claude/multiloader-from-ratiopath branch October 21, 2026 15:21
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.

3 participants