Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@JelleZijlstra

Description

I'd like to submit the spec change in python/typing#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).

  • Carl
  • Eric
  • Jelle
  • Jukka
  • Rebecca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /