Various type-checking improvements
This commit is contained in:
parent
e5f0c85560
commit
0c04bf8ea3
13 changed files with 27 additions and 26 deletions
|
|
@ -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], ...]`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue