mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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
18 lines
598 B
Python
18 lines
598 B
Python
"""Compatibility wrapper.
|
|
|
|
This package was migrated from a flat module (make.py) to a package layout:
|
|
make/__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("_")])
|