Skip to content

Commit 3ca95a6

Browse files
committed
fix: model.BomMetaData.component setter typehint
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 7e381cf commit 3ca95a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx/model/bom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def component(self) -> Optional[Component]:
179179
return self._component
180180

181181
@component.setter
182-
def component(self, component: Component) -> None:
182+
def component(self, component: Optional[Component]) -> None:
183183
"""
184184
The (optional) component that the BOM describes.
185185

0 commit comments

Comments
 (0)