Skip to content

🐛 fix(backend): make wildcard imports work - #16

Merged
gaborbernat merged 1 commit into
mainfrom
fix/backend-configsettings-export
Nov 13, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/backend-configsettings-export

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

from python_sbom.backend import * raises AttributeError because ConfigSettings appears in the backend's __all__ but exists only during static type checking. This fix lets callers import every declared backend name.

The backend defines the settings alias at runtime. A wildcard import test covers that contract.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 13, 2026
@gaborbernat
gaborbernat force-pushed the fix/backend-configsettings-export branch from 985c91e to 72aebff Compare November 13, 2026 01:36
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 python-sbom | 🛠️ Build #35855791 | 📁 Comparing 72aebff against latest (906d92e)

  🔍 Preview build  

1 file changed
± changelog.html

@gaborbernat
gaborbernat merged commit dae9036 into main Nov 13, 2026
37 checks passed
@gaborbernat
gaborbernat deleted the fix/backend-configsettings-export branch November 13, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant