Skip to content

deprecate remaining hooked entry points - #1592

Open
msaule wants to merge 1 commit into
TransformerLensOrg:devfrom
msaule:fix-hooked-entrypoint-deprecations
Open

deprecate remaining hooked entry points#1592
msaule wants to merge 1 commit into
TransformerLensOrg:devfrom
msaule:fix-hooked-entrypoint-deprecations

Conversation

@msaule

@msaule msaule commented Aug 1, 2026

Copy link
Copy Markdown

Summary

  • Emit DeprecationWarning from the remaining silent legacy entry points.
  • Gate the HookedRootModule warning to direct construction, avoiding duplicate warnings from subclasses.
  • Add regression coverage for one warning per constructor and a warning-free package import.

Why

Users who instantiate these legacy classes directly otherwise receive no migration notice ahead of the 4.0 removal. Each warning points to TransformerBridge.boot_transformers(...).

Closes #1590

Validation

  • pytest tests/unit/test_deprecation_warnings.py -q — 5 passed
  • mypy . — 385 source files, no issues
  • pycln, isort, and black checks passed on changed files

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