Skip to content

Commit

Permalink
Clarified Duration alias and updated Sphinx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijannat committed Jul 19, 2024
1 parent 1afd67a commit 22fdeb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions basyx/aas/model/submodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
if TYPE_CHECKING:
from . import aas

from dateutil.relativedelta import relativedelta as Duration
from dateutil.relativedelta import relativedelta
Duration = relativedelta


class SubmodelElement(base.Referable, base.Qualifiable, base.HasSemantics,
Expand Down Expand Up @@ -1339,11 +1340,11 @@ def last_update(self, last_update: Optional[datatypes.DateTime]) -> None:
self._last_update: Optional[datatypes.DateTime] = last_update

@property
def max_interval(self) -> Optional['Duration']:
def max_interval(self) -> Optional[Duration]:
return self._max_interval

@max_interval.setter
def max_interval(self, max_interval: Optional['Duration']) -> None:
def max_interval(self, max_interval: Optional[Duration]) -> None:
if max_interval is not None and self.direction is base.Direction.INPUT:
raise ValueError("max_interval is not applicable if direction = input!")
self._max_interval: Optional['Duration'] = max_interval

0 comments on commit 22fdeb4

Please sign in to comment.