spdx_tools.spdx3.model.licensing.conjunctive_license_set

 1# SPDX-FileCopyrightText: 2023 spdx contributors
 2#
 3# SPDX-License-Identifier: Apache-2.0
 4from beartype.typing import List
 5
 6from spdx_tools.common.typing.dataclass_with_properties import dataclass_with_properties
 7from spdx_tools.common.typing.type_checks import check_types_and_set_values
 8from spdx_tools.spdx3.model.licensing.any_license_info import AnyLicenseInfo
 9
10
11@dataclass_with_properties
12class ConjunctiveLicenseSet(AnyLicenseInfo):
13    member: List[AnyLicenseInfo]
14
15    def __init__(self, member: List[AnyLicenseInfo]):
16        check_types_and_set_values(self, locals())
@dataclass_with_properties
class ConjunctiveLicenseSet(spdx_tools.spdx3.model.licensing.any_license_info.AnyLicenseInfo):
12@dataclass_with_properties
13class ConjunctiveLicenseSet(AnyLicenseInfo):
14    member: List[AnyLicenseInfo]
15
16    def __init__(self, member: List[AnyLicenseInfo]):
17        check_types_and_set_values(self, locals())
ConjunctiveLicenseSet( member: list[spdx_tools.spdx3.model.licensing.any_license_info.AnyLicenseInfo])
16    def __init__(self, member: List[AnyLicenseInfo]):
17        check_types_and_set_values(self, locals())
47    def get_field(self) -> field_type:
48        return getattr(self, f"_{field_name}")