spdx_tools.spdx3.model.licensing.or_later_operator

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