spdx_tools.spdx3.model.licensing.license
1# SPDX-FileCopyrightText: 2023 spdx contributors 2# 3# SPDX-License-Identifier: Apache-2.0 4from abc import abstractmethod 5from dataclasses import field 6 7from beartype.typing import List, Optional 8 9from spdx_tools.common.typing.dataclass_with_properties import dataclass_with_properties 10from spdx_tools.spdx3.model.licensing.any_license_info import AnyLicenseInfo 11 12 13@dataclass_with_properties 14class License(AnyLicenseInfo): 15 license_id: str 16 license_name: str 17 license_text: str 18 license_comment: Optional[str] = None 19 see_also: List[str] = field(default_factory=list) 20 is_osi_approved: Optional[bool] = None 21 is_fsf_libre: Optional[bool] = None 22 standard_license_header: Optional[str] = None 23 standard_license_template: Optional[str] = None 24 is_deprecated_license_id: Optional[bool] = None 25 obsoleted_by: Optional[str] = None 26 27 @abstractmethod 28 def __init__(self): 29 pass
@dataclass_with_properties
class
License14@dataclass_with_properties 15class License(AnyLicenseInfo): 16 license_id: str 17 license_name: str 18 license_text: str 19 license_comment: Optional[str] = None 20 see_also: List[str] = field(default_factory=list) 21 is_osi_approved: Optional[bool] = None 22 is_fsf_libre: Optional[bool] = None 23 standard_license_header: Optional[str] = None 24 standard_license_template: Optional[str] = None 25 is_deprecated_license_id: Optional[bool] = None 26 obsoleted_by: Optional[str] = None 27 28 @abstractmethod 29 def __init__(self): 30 pass