Skip to content

User-defined protocols #3838

Closed
Closed
@JukkaL

Description

@JukkaL

This issue tracks the remaining things needed for making user-defined protocols work.

Now that #3132 was merged, mypy understand protocols. However, we still need runtime support for protocols (the Protocol class) and Protocol needs to be added to typeshed before protocols can actually be used in user code.

See also #3132 (comment).

Switching ABCs in typing to be protocols is a separate issue and requires coordination with other users of typeshed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions