MilanStaffehl / numdantic

Typing support for numpy arrays and numpy array validation with pydantic.
MIT License
1 stars 0 forks source link

Type numpy generics correctly in README #17

Closed MilanStaffehl closed 1 month ago

MilanStaffehl commented 2 months ago

The section about broader dtypes uses np.number and np.unsignedinteger, both of which are generics and thus require a type parameter. Add this to the examples to make them mypy --strict compatible.

Also add another example without a generic (or replace the unsignetinteger one) to show that this works for all numpy scalars.