-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Expose can_cast and result_type once type promotion is merged #25472
Copy link
Copy link
Closed
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: type promotionRelated to semantics of type promotionRelated to semantics of type promotiontriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Metadata
Metadata
Assignees
Labels
enhancementNot as big of a feature, but technically not a bug. Should be easy to fixNot as big of a feature, but technically not a bug. Should be easy to fixmodule: type promotionRelated to semantics of type promotionRelated to semantics of type promotiontriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
When we have the ability to promote types per #22273, it will be beneficial for users to be able to check the types that will result for various operations.
similar to:
https://docs.scipy.org/doc/numpy/reference/generated/numpy.can_cast.html
and
https://docs.scipy.org/doc/numpy/reference/generated/numpy.promote_types.html