We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9115c28 commit 2c767e2Copy full SHA for 2c767e2
spatialmath/base/argcheck.py
@@ -14,6 +14,7 @@
14
import math
15
import numpy as np
16
from spatialmath.base import symbolic as sym
17
+from numpy.typing import ArrayLike
18
19
# valid scalar types
20
_scalartypes = (int, np.integer, float, np.floating) + sym.symtype
@@ -256,7 +257,7 @@ def verifymatrix(m, shape):
256
257
# and not np.iscomplex(m) checks every element, would need to be not np.any(np.iscomplex(m)) which seems expensive
258
259
-def getvector(v, dim=None, out="array", dtype=np.float64):
260
+def getvector(v, dim=None, out="array", dtype=np.float64) -> ArrayLike:
261
"""
262
Return a vector value
263
0 commit comments