Skip to content

Commit 2c767e2

Browse files
committed
type added
1 parent 9115c28 commit 2c767e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spatialmath/base/argcheck.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import math
1515
import numpy as np
1616
from spatialmath.base import symbolic as sym
17+
from numpy.typing import ArrayLike
1718

1819
# valid scalar types
1920
_scalartypes = (int, np.integer, float, np.floating) + sym.symtype
@@ -256,7 +257,7 @@ def verifymatrix(m, shape):
256257
# and not np.iscomplex(m) checks every element, would need to be not np.any(np.iscomplex(m)) which seems expensive
257258

258259

259-
def getvector(v, dim=None, out="array", dtype=np.float64):
260+
def getvector(v, dim=None, out="array", dtype=np.float64) -> ArrayLike:
260261
"""
261262
Return a vector value
262263

0 commit comments

Comments
 (0)