spdx_tools.spdx3.model.positive_integer_range

 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
 6
 7
 8@dataclass_with_properties
 9class PositiveIntegerRange:
10    begin: int
11    end: int
12
13    def __init__(
14        self,
15        begin: int,
16        end: int,
17    ):
18        check_types_and_set_values(self, locals())
@dataclass_with_properties
class PositiveIntegerRange:
 9@dataclass_with_properties
10class PositiveIntegerRange:
11    begin: int
12    end: int
13
14    def __init__(
15        self,
16        begin: int,
17        end: int,
18    ):
19        check_types_and_set_values(self, locals())
PositiveIntegerRange(begin: int, end: int)
14    def __init__(
15        self,
16        begin: int,
17        end: int,
18    ):
19        check_types_and_set_values(self, locals())
begin: int
47    def get_field(self) -> field_type:
48        return getattr(self, f"_{field_name}")
end: int
47    def get_field(self) -> field_type:
48        return getattr(self, f"_{field_name}")