Skip to content

ssl.Purpose.CLIENT_AUTH is incompatible with ssl.Purpose #2770

@GoldsteinE

Description

@GoldsteinE

I'm using Python 3.7.2 on Linux x64, mypy 0.660. This code doesn't pass mypy check:

import ssl

def t(x: ssl.Purpose):
    pass

t(ssl.Purpose.CLIENT_AUTH)

CLIENT_AUTH should be compatible with ssl.Purpose:

>>> import ssl
>>> isinstance(ssl.Purpose.CLIENT_AUTH, ssl.Purpose)
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions