Skip to content

Support for generic TypedDict#3863

@dgoldstein0

Description

@dgoldstein0
R = TypeVar("R") FileCachedData = TypedDict('FileCachedData',{'mtime': float, 'size': int, 'value': R}) 

mypy complains about R in the TypedDict declaration. I would expect that I could declare a generic TypedDict like this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions