Skip to content

Commit

Permalink
Update abstract_data_record.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mdabrowski1990 committed Nov 7, 2024
1 parent c7dca7c commit f388a29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions uds/database/abstract_data_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__all__ = ["DataRecordType", "AbstractDataRecord", "DecodedDataRecord"]

from abc import ABC, abstractmethod
from typing import Tuple, TypedDict, Union
from typing import Tuple, TypedDict, Union, Optional

from uds.utilities import ValidatedEnum

Expand Down Expand Up @@ -82,19 +82,19 @@ def min_occurrences(self) -> int:
"""
Minimal number of this Data Record occurrences.
.. note:: Relevant only if :attr:`~uds.database.abstract_data_record.AbstractDataRecord.min_occurrences`
.. note:: Relevant only if :attr:`~uds.database.abstract_data_record.AbstractDataRecord.is_reoccurring`
equals True.
"""

@property # noqa: F841
@abstractmethod
def max_occurrences(self) -> int:
def max_occurrences(self) -> Optional[int]:
"""
Maximal number of this Data Record occurrences.
.. note:: Relevant only if :attr:`~uds.database.abstract_data_record.AbstractDataRecord.min_occurrences`
.. note:: Relevant only if :attr:`~uds.database.abstract_data_record.AbstractDataRecord.is_reoccurring`
equals True.
.. warning:: No maximal number (infinite number of occurrences) is represented by `0` value.
.. warning:: No maximal number (infinite number of occurrences) is represented by None value.
"""

@property # noqa: F841
Expand Down

0 comments on commit f388a29

Please sign in to comment.