Skip to content

chore(exports): add __version__ to __all__ for complete public API#9

Merged
sirambrosio merged 1 commit into
mainfrom
chore/explicit-exports
Apr 20, 2026
Merged

chore(exports): add __version__ to __all__ for complete public API#9
sirambrosio merged 1 commit into
mainfrom
chore/explicit-exports

Conversation

@sirambrosio
Copy link
Copy Markdown
Contributor

Summary

  • __version__ = '2.1.0' was defined at module level but not listed in __all__
  • This means from bsp_sdk import * silently omits the version, and introspection tools that enumerate __all__ miss it
  • Added "__version__" as the first entry under a # Package metadata comment

Why this matters

Tools like importlib.metadata, version checkers, and wildcard imports rely on __all__ being the authoritative list of public symbols. Omitting __version__ is a small but real inconsistency.

Test plan

  • python -c "from bsp_sdk import *; print(__version__)" → prints 2.1.0
  • python -c "import bsp_sdk; assert '__version__' in bsp_sdk.__all__"
  • python -c "import bsp_sdk; print(bsp_sdk.__version__)"2.1.0 (unchanged)

🤖 Generated with Claude Code

__version__ = '2.1.0' was defined at module level but omitted from
__all__, meaning `from bsp_sdk import *` would not expose it and tools
like `bsp_sdk.__version__` checks via __all__ introspection would miss
it. Add it as the first entry under a 'Package metadata' comment.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sirambrosio sirambrosio merged commit bd9303a into main Apr 20, 2026
4 checks passed
@sirambrosio sirambrosio deleted the chore/explicit-exports branch April 20, 2026 18:52
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