Skip to content

complex should support SupportsComplex #1904

@shoyer

Description

@shoyer

As @gvanrossum points out in python/mypy#4592:

Both the Py2 and Py3 definition of class complex there are lacking several things -- a base class of SupportsComplex and an overload of the constructor to take a SupportsComplex value.

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