Closed uellue closed 1 month ago
That should work, executes fine here and there are a set of tests just like that here: https://github.com/p2p-ld/numpydantic/blob/1cf69eb18c57aa5ed425a0d925378f4994f10ef5/tests/conftest.py#L199-L204
can you print me a python -m pip freeze
from that environment?
for the record the goal is to minimize special types, i'll add to the docs that when in doubt just use numpy types as the standard way to refer to things like this. there's a bit of subtlety to come re: mapping dtypes between array frameworks, but when i doubt i would treat numpy types as the lingua franca
Thank you for reproducing! I tried a fresh environment and it worked. For some reason I got numpydantic==1.6.0
in the old one.
First, thank you for implementing union types so quickly!
When trying it out, I came across this:
Error:
Can you reproduce it? Are the types supposed to be used like this?