Skip to content

Support declaring TypedDict type with class-based syntax (for Python 3.6+) #2740

Closed
@davidfstr

Description

@davidfstr
  • Support basic declaration:
class Point2D(TypedDict):
    x: int
    y: int
  • Support class-based inheritance as syntactic sugar for copying fields
class Point3D(Point2D):
    z: int

There is already support for the above syntaxes at runtime but the typechecker doesn't reconcognize it yet.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions