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.
The section about broader dtypes uses
np.number
andnp.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.