-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove complex.__float__, complex.__floordiv__, etc #86140
Comments
The complex class has special methods which always raise a TypeError: __int__ After removing them the corresponding operations (converting to int and float, operators // and %, function divmod()) will still a TypeError. Advantages of removing:
|
+1 This makes sense. |
The docs for this should probably be updated to reflect the change: https://docs.python.org/3/library/typing.html#typing.runtime_checkable |
Indeed, Bartosz. Do you think you can help by submitting a PR for the docs? |
Done so: #25197 Signed the CLA thing too, it seems it'll take a while to update tho. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: