You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python#8440: Update parameter types in complex.__new__
For two-parameter overload:
- Change first parameter to complex | SupportsComplex | SupportsFloat
- Change second parameter to complex | SupportsFloat (Python doesn't allow SupportsComplex for the second parameter, though it isn't clear why)
- Add SupportsIndex to both parameters for Python >= 3.8
For one-parameter overload:
- Remove SupportsIndex for Python < 3.8
0 commit comments