Skip to content

Allow calling dict methods on TypedDict #115

@grievejia

Description

@grievejia

Minimal repro:

from typing import TypedDict

class D(TypedDict):
    x: int

def test(d: D) -> None:
    d.copy()

Expected: No error
Actual: Object of class Mapping has no attribute copy [missing-attribute]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions