Skip to content

chore: convert 12 explicit re-export shims → sys.modules-alias bridges#250

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
chore/batch-alias-cleanup
Open

chore: convert 12 explicit re-export shims → sys.modules-alias bridges#250
ywatanabe1989 wants to merge 1 commit intodevelopfrom
chore/batch-alias-cleanup

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

For every `scitex.X` where `scitex-X` is already a separate published package and the umbrella's `init.py` only re-exports symbols, replace the explicit re-export list with the standard `sys.modules` alias bridge.

Modules: `audio`, `audit`, `etc`, `parallel`, `path`, `dict`, `types`, `gists`, `browser`, `repro`, `compat`, `str` (12 modules).

Why

  • Explicit re-export lists silently drift whenever `scitex-X` adds a new public name — the umbrella has to re-publish for users to see it.
  • `sys.modules` aliasing makes `scitex.X is scitex_X`, so every new symbol is automatically visible.

Test plan

  • Verified `scitex. is scitex_` for all 12 modules.

🤖 Generated with Claude Code

For every scitex.X where scitex-X is already a separate published package and
the umbrella's __init__.py only re-exports symbols, replace the explicit
re-export list with the same sys.modules alias pattern used by all other
extracted modules.

Modules touched: audio, audit, etc, parallel, path, dict, types, gists,
browser, repro, compat, str.

Why this matters:
- Explicit re-export lists silently drift whenever the standalone package
  adds a new public name — the umbrella has to re-publish to expose it.
- sys.modules aliasing makes `scitex.X is scitex_X`, so every new symbol is
  automatically visible without scitex-python republishing.

Verified for all 12: `scitex.<m> is scitex_<m>`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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