numpy.typing.NDArray is a type alias for annotation purposes only, not a real class you can subclass
Workaround:
Use numpy below version 2.3 uv add "numpy>=2,<2.3"
Permanent fix:
subclass ndarray
class CoordinateFrame(np.ndarray):
`TypeError: typealias() takes exactly 2 positional arguments (3 given)`
This is caused by:
`class CoordinateFrame(NDArray): # ← not allowed`
`numpy.typing.NDArray` is a type alias for annotation purposes only, not a real class you can subclass
Workaround:
Use numpy below version 2.3
`uv add "numpy>=2,<2.3"`
Permanent fix:
subclass ndarray
`class CoordinateFrame(np.ndarray):`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
TypeError: typealias() takes exactly 2 positional arguments (3 given)This is caused by:
class CoordinateFrame(NDArray): # ← not allowednumpy.typing.NDArrayis a type alias for annotation purposes only, not a real class you can subclassWorkaround:
Use numpy below version 2.3
uv add "numpy>=2,<2.3"Permanent fix:
subclass ndarray
class CoordinateFrame(np.ndarray):