8000 bpo-24234: implement complex.__complex__ by mdickinson · Pull Request #27887 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-24234: implement complex.__complex__ #27887

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix reST markup
  • Loading branch information
mdickinson committed Aug 22, 2021
commit 19632aca7e141858caea3372e012118f0b4d3c65
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Implement the ``__complex__`` special method on the :class:`complex` type,
so a complex number `z` passes an ``isinstance(z, typing.SupportsComplex)``
so a complex number ``z`` passes an ``isinstance(z, typing.SupportsComplex)``
check.
0