8000 fix types · Robertleoj/spatialmath-python@7649051 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7649051

Browse files
committed
fix types
1 parent c04cb19 commit 7649051

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spatialmath/base/argcheck.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,11 @@ def isvectorlist(x: Any, n: int) -> bool:
617617
return islistof(x, lambda x: isinstance(x, np.ndarray) and x.shape == (n,))
618618

619619

620-
def islistof(value: Any, what: type | Callable, n: int | None = None):
620+
def islistof(
621+
value: Any,
622+
what: type | tuple[type, ...] | Callable,
623+
n: int | None = None,
624+
) -> bool:
621625
"""
622626
Test if argument is a list of specified type
623627

0 commit comments

Comments
 (0)
0