pydantic-numpy
pydantic-numpy copied to clipboard
Seamlessly integrate numpy arrays into pydantic models.
the following import:: [`from pydantic.fields import ModelField`](https://github.com/cheind/pydantic-numpy/blob/main/pydantic_numpy/dtype.py#L9) trows an exception when using latest pydantic ``` >>> from pydantic.fields import ModelField Traceback (most recent call last): File "", line 1, in...
[This comment](https://github.com/pydantic/pydantic/issues/380#issuecomment-620378743) in the original thread was restricting shape of the array. Please consider adding shape to pydantic-numpy (I don't have the fluency with generics to do it myself).
Under python 3.8, `from pydantic_numpy import NDArrayFP32` raise `TypeError: Type subscription requires python >= 3.9`. Any workaround to this issue?