Files
computer-playbook/cli/fix/tabs/__init__.py
T
kevinveenbirkenbach 6eb35ef450 refactor(cli): remove wildcard re-exports from __init__ wrappers
Replace `from .__main__ import *` with controlled re-exports based on `__all__`
to avoid namespace pollution and improve static analysis.

Public APIs remain unchanged while making re-export behavior explicit and
lint-friendly across all CLI subpackages.

https://chatgpt.com/share/6947c1d6-23d0-800f-9910-008ee277213c
2025-12-21 10:45:51 +01:00

18 lines
598 B
Python

"""Compatibility wrapper.
This package was migrated from a flat module (tabs.py) to a package layout:
tabs/__main__.py contains the original implementation.
We re-export the public API so existing imports keep working.
"""
from __future__ import annotations
from . import __main__ as _main
__all__ = getattr(_main, "__all__", [n for n in dir(_main) if not n.startswith("_")])
globals().update({name: getattr(_main, name) for name in __all__})
# Prefer explicit __all__ if the original module defined it.
__all__ = getattr(_main, "__all__", [n for n in dir(_main) if not n.startswith("_")])