Skip to content

fix: resolve documentation and metadata discrepancies#134

Merged
hakandilek merged 3 commits into
mainfrom
fix/ambiguities
Jul 8, 2026
Merged

fix: resolve documentation and metadata discrepancies#134
hakandilek merged 3 commits into
mainfrom
fix/ambiguities

Conversation

@hakandilek

Copy link
Copy Markdown
Collaborator

Summary

Corrects non-functional discrepancies in documentation and project metadata. No library behavior changes.

Changes

  • docs(README): Fix incorrect claim that StandardBom is a subclass of cyclonedx.model.bom.Bom; it is a wrapper (composition).
  • docs(README): Import Component / ComponentType from cyclonedx.model.component in the code examples instead of re-importing them from siemens_standard_bom.model (breaks under the strict-mypy setup the README recommends).
  • chore: Unify the maintainer email across codebase

Testing

poetry run tox run — lint (flake8), types (mypy strict), unit tests on Python 3.10–3.14.

Notes

  • Non-breaking.
  • Draft pending review.

@hakandilek hakandilek marked this pull request as ready for review July 8, 2026 10:52
The README stated that `StandardBom` is a subclass of the CycloneDX `Bom` class. That is inaccurate: `StandardBom` uses composition — it holds a `cyclonedx.model.bom.Bom` instance in `self.bom` and exposes convenience wrappers around the upstream model objects.

Correct the wording from "subclass" to "wraps" and fix the fully-qualified class path to `cyclonedx.model.bom.Bom`. Documentation-only change with no behavior or API impact.
The README examples imported `Component` and `ComponentType` from `siemens_standard_bom.model`. Those names are upstream CycloneDX model classes, not part of this package's explicit public exports.

Import them from `cyclonedx.model.component` instead so the examples work cleanly for consumers using strict type checking and `implicit_reexport = False`.

@leoreinmann leoreinmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hakandilek hakandilek merged commit ca821dc into main Jul 8, 2026
12 checks passed
@hakandilek hakandilek deleted the fix/ambiguities branch July 8, 2026 14:39
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.

2 participants