Skip to content

Expose can_cast and result_type once type promotion is merged #25472

@nairbv

Description

@nairbv

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

Metadata

Metadata

Assignees

Labels

enhancementNot as big of a feature, but technically not a bug. Should be easy to fixmodule: type promotionRelated to semantics of type promotiontriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions