Skip to content

Enhance protocol matching support to take into consideration final attributes #2107

Closed
@erictraut

Description

@erictraut

Currently, pyright doesn't take into consideration a class or instance variable that is annotated as Final within a Protocol class. Nor does it take into account a final=True dataclass protocol.

See: python/mypy#10850

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions