remove TODO labels from mypy #3004 comments

This commit is contained in:
Jan Petykiewicz 2023-07-17 21:25:52 -07:00 committed by jan
parent b872e19dec
commit e47f9b76b1
7 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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]`
"""

View File

@ -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], ...]`)
"""

View File

@ -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], ...]`)
"""

View File

@ -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
"""

View File

@ -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