Skip to content

chore: Remove deprecated schedules/inject.py stub file#1548

Closed
harshaljanjani wants to merge 1 commit intogoogle-deepmind:mainfrom
harshaljanjani:remove-deprecated-inject-stub
Closed

chore: Remove deprecated schedules/inject.py stub file#1548
harshaljanjani wants to merge 1 commit intogoogle-deepmind:mainfrom
harshaljanjani:remove-deprecated-inject-stub

Conversation

@harshaljanjani
Copy link
Copy Markdown

@harshaljanjani harshaljanjani commented Jan 6, 2026

First contribution!

→ This PR removes the deprecated import stub file optax/schedules/inject.py, as indicated by the TODO comment. The file was a simple import stub that re-exported InjectHyperparamsState and inject_hyperparams from optax/schedules/_inject.py; all imports in the codebase already use the actual implementation in _inject.py.

@harshaljanjani
Copy link
Copy Markdown
Author

Good day @rdyro @selamw1,
I was wondering if you could review this PR at your convenience; thanks!

@rdyro
Copy link
Copy Markdown
Collaborator

rdyro commented Jan 8, 2026

We’re in the process of resolving some internal conflicts #1414 (comment) so we might need to hold off on merging this for a sec, sorry!

@harshaljanjani
Copy link
Copy Markdown
Author

No worries, thanks for the update @rdyro!

Copy link
Copy Markdown
Collaborator

@vroulet vroulet left a comment

Choose a reason for hiding this comment

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

Should be good, thanks!

@harshaljanjani
Copy link
Copy Markdown
Author

Good day; I was wondering if there are any updates on this PR’s mergeability post-approval?
cc: @rdyro @vroulet

@harshaljanjani
Copy link
Copy Markdown
Author

@rdyro @vroulet Just a gentle ping :)

@rdyro
Copy link
Copy Markdown
Collaborator

rdyro commented Mar 13, 2026

Hey, thanks for this PR!

For this, we unfortunately had to remove this internally-first because of unrelated issues, thanks for the reminder on this though!

The file should be gone now, so closing.

@rdyro rdyro closed this Mar 13, 2026
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