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
This uses the same trick as in #137, and it also requires #136 to be resolved first. It isn't as useful as #137, because it requires both the protocol and the scalar type to be on the left-hand-side of the signature, which e.g. is (or could me made) the case in the constructors of dtype and {f,i}info.
This uses the same trick as in #137, and it also requires #136 to be resolved first. It isn't as useful as #137, because it requires both the protocol and the scalar type to be on the left-hand-side of the signature, which e.g. is (or could me made) the case in the constructors of
dtype
and{f,i}info
.Do this for all scalar types, including the abstract ones. This way, we can create a generic "inverted
npt.DTypeLike
" protocol:Assuming that the constraint solver of the type-checker is powerful enough, this could then be used in e.g.
dtype
to simplify the constructor:But now that I see it, might be expecting a bit too much, especially in case of mypy... Any, I guess it's still worth a shot 🤷🏻
The text was updated successfully, but these errors were encountered: