Make DataSample
values generic to support shape typing
#377
Labels
⚠️ Interface
Breaking changes to the API
DataSample
values generic to support shape typing
#377
Currently, values of the
DataSample
dict alias are NumPy arrays. A more backend-agnostic solution might be #131 and the newnumpy.typing
module, but an alternative might be to use a (possibly bound)TypeVar
. This also might also improve deduced types in case there are scalar values in the data sample given to aFunction
/ParametrizedFunction
(currently, this is marked as wrong by mypy/pyright).Update below: #377 (comment)
The text was updated successfully, but these errors were encountered: