All the numpy arrays are currently np.ndarray but should be NDArray.
All files should have
from numpy.typing import NDArray
And then replace the np.ndarrays with NDArray[np.type].
As an example:
def calcBrakeForce(worldArray:np.ndarray, step:int) -> tuple[float,float]:
should become
def calcBrakeForce(worldArray:NDArray[np.float64], step:int) -> tuple[float,float]:
All the numpy arrays are currently np.ndarray but should be NDArray.
All files should have
And then replace the np.ndarrays with NDArray[np.type].
As an example:
should become