Various type-checking improvements

This commit is contained in:
Jan Petykiewicz 2025-10-26 18:45:09 -07:00
commit 0c04bf8ea3
13 changed files with 27 additions and 26 deletions

View file

@ -87,7 +87,7 @@ class Path(Shape):
# cap_extensions property
@property
def cap_extensions(self) -> Any | None: # mypy#3004 NDArray[numpy.float64]]:
def cap_extensions(self) -> NDArray[numpy.float64] | None:
"""
Path end-cap extension
@ -113,7 +113,7 @@ class Path(Shape):
# vertices property
@property
def vertices(self) -> Any: # mypy#3004 NDArray[numpy.float64]]:
def vertices(self) -> NDArray[numpy.float64]:
"""
Vertices of the path (Nx2 ndarray: `[[x0, y0], [x1, y1], ...]`