diff --git a/masque/repetition.py b/masque/repetition.py index 0cb9e69..685d815 100644 --- a/masque/repetition.py +++ b/masque/repetition.py @@ -302,7 +302,7 @@ class Arbitrary(Repetition): """ @property - def displacements(self) -> Any: # TODO: mypy#3004 NDArray[numpy.float64]: + def displacements(self) -> Any: # mypy#3004 NDArray[numpy.float64]: return self._displacements @displacements.setter diff --git a/masque/shapes/arc.py b/masque/shapes/arc.py index c023e73..443b436 100644 --- a/masque/shapes/arc.py +++ b/masque/shapes/arc.py @@ -41,7 +41,7 @@ class Arc(Shape): # radius properties @property - def radii(self) -> Any: # TODO mypy#3004 NDArray[numpy.float64]: + def radii(self) -> Any: # mypy#3004 NDArray[numpy.float64]: """ Return the radii `[rx, ry]` """ @@ -78,7 +78,7 @@ class Arc(Shape): # arc start/stop angle properties @property - def angles(self) -> Any: # TODO mypy#3004 NDArray[numpy.float64]: + def angles(self) -> Any: # mypy#3004 NDArray[numpy.float64]: """ Return the start and stop angles `[a_start, a_stop]`. Angles are measured from x-axis after rotation diff --git a/masque/shapes/ellipse.py b/masque/shapes/ellipse.py index 9a61478..1062061 100644 --- a/masque/shapes/ellipse.py +++ b/masque/shapes/ellipse.py @@ -31,7 +31,7 @@ class Ellipse(Shape): # radius properties @property - def radii(self) -> Any: # TODO mypy#3004 NDArray[numpy.float64]: + def radii(self) -> Any: # mypy#3004 NDArray[numpy.float64]: """ Return the radii `[rx, ry]` """ diff --git a/masque/shapes/path.py b/masque/shapes/path.py index 515be49..d8037ad 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -76,7 +76,7 @@ class Path(Shape): # cap_extensions property @property - def cap_extensions(self) -> Any | None: # TODO mypy#3004 NDArray[numpy.float64]]: + def cap_extensions(self) -> Any | None: # mypy#3004 NDArray[numpy.float64]]: """ Path end-cap extension @@ -99,7 +99,7 @@ class Path(Shape): # vertices property @property - def vertices(self) -> Any: # TODO mypy#3004 NDArray[numpy.float64]]: + def vertices(self) -> Any: # mypy#3004 NDArray[numpy.float64]]: """ Vertices of the path (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`) """ diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index 0c562ae..9c9a671 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -30,7 +30,7 @@ class Polygon(Shape): # vertices property @property - def vertices(self) -> Any: # TODO mypy#3004 NDArray[numpy.float64]: + def vertices(self) -> Any: # mypy#3004 NDArray[numpy.float64]: """ Vertices of the polygon (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`) """ diff --git a/masque/traits/positionable.py b/masque/traits/positionable.py index 3a66b27..3ad93cb 100644 --- a/masque/traits/positionable.py +++ b/masque/traits/positionable.py @@ -75,7 +75,7 @@ class PositionableImpl(Positionable, metaclass=ABCMeta): # # offset property @property - def offset(self) -> Any: # TODO mypy#3003 NDArray[numpy.float64]: + def offset(self) -> Any: # mypy#3004 NDArray[numpy.float64]: """ [x, y] offset """ diff --git a/masque/traits/rotatable.py b/masque/traits/rotatable.py index ce89cec..850f70a 100644 --- a/masque/traits/rotatable.py +++ b/masque/traits/rotatable.py @@ -115,7 +115,7 @@ class PivotableImpl(Pivotable, metaclass=ABCMeta): pivot = numpy.array(pivot, dtype=float) cast(Positionable, self).translate(-pivot) cast(Rotatable, self).rotate(rotation) - self.offset = numpy.dot(rotation_matrix_2d(rotation), self.offset) # type: ignore # TODO: mypy#3004 + self.offset = numpy.dot(rotation_matrix_2d(rotation), self.offset) # type: ignore # mypy#3004 cast(Positionable, self).translate(+pivot) return self