typing-council icon indicating copy to clipboard operation
typing-council copied to clipboard

Spec change: float/int promotion is implemented through implicit unions

Open JelleZijlstra opened this issue 7 months ago • 0 comments

I'd like to submit the spec change in https://github.com/python/typing/pull/1748, which clarifies that the float/int (and complex/float) implicit promotion is implemented by treating float as if it was float | int in type expressions. Discussion in https://discuss.python.org/t/clarifying-the-float-int-complex-special-case/54018/30 (and more related discussion in https://discuss.python.org/t/options-for-a-long-term-fix-of-the-special-case-for-float-int-complex/54289).

  • [x] Carl
  • [x] Eric
  • [x] Jelle
  • [ ] Jukka
  • [x] Rebecca

JelleZijlstra avatar Jun 29 '25 15:06 JelleZijlstra