You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
actively discourage or prevent the usage of numpy.typing.NBitBase #395
In NumType, all scalar types have their are annotated as concrete subclasses. Most function will no longer accepts floating[_32Bit], and require float32 instead. This is because floating[_32Bit] is no longer assignable to float32.
The purpose of numpy.typing.NBitBase was as upper bound to a type parameter, for use in generic abstract scalar types like floating[T]. But the now concrete scalar types will no longer accept anyfloating[T].
NBitBase should therefore not be used anymore.
Type parameters can instead use an abstract scalar type as an upper bound. So instead of
Activity