Yes, I believe the ask is for `int.__complex__`, `float.__complex__` and `complex.__complex__` ( https://github.com/python/mypy/issues/3186#issuecomment-762121456)
On Mon, 18 Jan 2021 at 09:47, Mark Dickinson <mdickin...@enthought.com> wrote: > Inheriting from `numbers.Real` _does_ give you `__complex__`, though: > https://github.com/python/cpython/blob/314b8787e0c50985ba708034b84ff5b37a1d47de/Lib/numbers.py#L245-L248 > > Is it instead `float.__complex__` you're asking for? > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/L7KA5VUCJB77MUOXQPMMCSA3CDCM767O/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/IG3UOCZFCCJTNOHWNQXRDSTWUNSVBZX2/ Code of Conduct: http://python.org/psf/codeofconduct/