Skip to content

Add types for typing library: Mutable, Immutable #125869

@ArtemIsmagilov

Description

@ArtemIsmagilov

Feature or enhancement

Proposal:

from typing import Mutable, Immutable
# checker ok
a: Mutable = [1, 2, 3]
b: Immutable = (1, 2, 3)
# checker will be show errors for IDLEs
a: Mutable = (1, 2, 3)
b: Immutable = [1, 2, 3]

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions