remove TODO labels from mypy #3004 comments
This commit is contained in:
parent
b95e9de1ee
commit
ed10f57a31
@ -302,7 +302,7 @@ class Arbitrary(Repetition):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def displacements(self) -> Any: # TODO: mypy#3004 NDArray[numpy.float64]:
|
def displacements(self) -> Any: # mypy#3004 NDArray[numpy.float64]:
|
||||||
return self._displacements
|
return self._displacements
|
||||||
|
|
||||||
@displacements.setter
|
@displacements.setter
|
||||||
|
@ -41,7 +41,7 @@ class Arc(Shape):
|
|||||||
|
|
||||||
# radius properties
|
# radius properties
|
||||||
@property
|
@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]`
|
Return the radii `[rx, ry]`
|
||||||
"""
|
"""
|
||||||
@ -78,7 +78,7 @@ class Arc(Shape):
|
|||||||
|
|
||||||
# arc start/stop angle properties
|
# arc start/stop angle properties
|
||||||
@property
|
@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]`.
|
Return the start and stop angles `[a_start, a_stop]`.
|
||||||
Angles are measured from x-axis after rotation
|
Angles are measured from x-axis after rotation
|
||||||
|
@ -31,7 +31,7 @@ class Ellipse(Shape):
|
|||||||
|
|
||||||
# radius properties
|
# radius properties
|
||||||
@property
|
@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]`
|
Return the radii `[rx, ry]`
|
||||||
"""
|
"""
|
||||||
|
@ -76,7 +76,7 @@ class Path(Shape):
|
|||||||
|
|
||||||
# cap_extensions property
|
# cap_extensions property
|
||||||
@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
|
Path end-cap extension
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class Path(Shape):
|
|||||||
|
|
||||||
# vertices property
|
# vertices property
|
||||||
@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], ...]`)
|
Vertices of the path (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`)
|
||||||
"""
|
"""
|
||||||
|
@ -30,7 +30,7 @@ class Polygon(Shape):
|
|||||||
|
|
||||||
# vertices property
|
# vertices property
|
||||||
@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], ...]`)
|
Vertices of the polygon (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`)
|
||||||
"""
|
"""
|
||||||
|
@ -75,7 +75,7 @@ class PositionableImpl(Positionable, metaclass=ABCMeta):
|
|||||||
#
|
#
|
||||||
# offset property
|
# offset property
|
||||||
@property
|
@property
|
||||||
def offset(self) -> Any: # TODO mypy#3003 NDArray[numpy.float64]:
|
def offset(self) -> Any: # mypy#3004 NDArray[numpy.float64]:
|
||||||
"""
|
"""
|
||||||
[x, y] offset
|
[x, y] offset
|
||||||
"""
|
"""
|
||||||
|
@ -115,7 +115,7 @@ class PivotableImpl(Pivotable, metaclass=ABCMeta):
|
|||||||
pivot = numpy.array(pivot, dtype=float)
|
pivot = numpy.array(pivot, dtype=float)
|
||||||
cast(Positionable, self).translate(-pivot)
|
cast(Positionable, self).translate(-pivot)
|
||||||
cast(Rotatable, self).rotate(rotation)
|
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)
|
cast(Positionable, self).translate(+pivot)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user