diff --git a/armarx_core/time/duration.py b/armarx_core/time/duration.py index 0b3a5f7687d1873f9fbdce12b940410164fbab3f..36efbdc0620cde9001f090ec7c07b92c60f97f7b 100644 --- a/armarx_core/time/duration.py +++ b/armarx_core/time/duration.py @@ -13,7 +13,7 @@ MIN_LONG_CPP = -9223372036854775808 @dataclasses.dataclass class Duration(AronDataclass): - microSeconds: np.int64 = MIN_LONG_CPP, # std::numeric_limits<long>::min() + microSeconds: np.int64 = MIN_LONG_CPP # std::numeric_limits<long>::min() @staticmethod def from_seconds(seconds: float) -> "Duration": diff --git a/armarx_memory/aron/common/framed/__init__.py b/armarx_memory/aron/common/framed/__init__.py index 93d1c55da130912f31c0d0d80732914c32ed4006..889968578da6af64c1edefa47612f8e16518448f 100644 --- a/armarx_memory/aron/common/framed/__init__.py +++ b/armarx_memory/aron/common/framed/__init__.py @@ -1,4 +1,7 @@ -from __future__ import annotations +# Using classes in the type annotations of their own methods can be re-introduced once this import is compatible +# (>= python 3.7) or native support is ready +# from __future__ import annotations +#from __future__ import annotations import dataclasses as dc import numpy as np @@ -46,7 +49,7 @@ class FramedPose(AronDataclass): pose: np.ndarray = dc.field(default_factory=lambda: np.eye(4, dtype=np.float32)) @classmethod - def with_type_check(cls, header: FrameID, pose: np.ndarray) -> FramedPose: + def with_type_check(cls, header: FrameID, pose: np.ndarray) -> 'FramedPose': """ Ensures that the data type of the pose array is correct; otherwise, there might be problems when reading the memory from C++