Skip to content

Detect and report covariant overrides of mutable variables #6392

Closed

Description

Mypy just added an option to report covariant overrides for mutable variables. For type safety, these should be invariant. Pyright should do the same.

See python/mypy#3208 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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