The TypeVar usage in the factorial code e.g. here
|
KalmanState = TypeVar("KalmanState", KalmanFilterState, LinearizedKalmanFilterState) |
causes some issues with ty which are currently ignored.
A possible solution is to use overload to specify the return type should be the same as the input type although this clutters the code quite a bit. Another solution is just to use ArrayTreeLike.
The
TypeVarusage in the factorial code e.g. herecuthbert/cuthbert/factorial/gaussian.py
Line 18 in e448483
causes some issues with ty which are currently ignored.
A possible solution is to use
overloadto specify the return type should be the same as the input type although this clutters the code quite a bit. Another solution is just to useArrayTreeLike.