spdx_tools.spdx3.writer.console.external_reference_writer
1# SPDX-FileCopyrightText: 2023 spdx contributors 2# 3# SPDX-License-Identifier: Apache-2.0 4from beartype.typing import TextIO 5 6from spdx_tools.spdx3.model import ExternalReference 7from spdx_tools.spdx3.writer.console.console import write_value 8 9 10def write_external_reference(external_reference: ExternalReference, text_output: TextIO): 11 for property_name in ExternalReference.__annotations__.keys(): 12 write_value(property_name, getattr(external_reference, property_name), text_output)
def
write_external_reference( external_reference: spdx_tools.spdx3.model.external_reference.ExternalReference, text_output: <class 'TextIO'>):