complex type promotion #18174
Answered
by
jakevdp
inversecrime
asked this question in
Q&A
complex type promotion
#18174
-
What is the best way to avoid manual type promotion like this:
|
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Oct 18, 2023
Replies: 1 comment 4 replies
-
This currently raises a warning I believe. We have a TODO to make this into an error. If you want to cast x into a new dtype, I don't think we'll ever do that implicitly. Your best option is probably to do it explicitly as in your last line. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
inversecrime
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This currently raises a warning I believe. We have a TODO to make this into an error.
If you want to cast x into a new dtype, I don't think we'll ever do that implicitly. Your best option is probably to do it explicitly as in your last line.