Skip to content

Generics for TypedDict in QueryOutputTableTypeDef #322

@nathanmmiller

Description

@nathanmmiller

Describe your idea
QueryOutputTableTypeDef.Items is currently typed as List[Dict[str, TableAttributeValueTypeDef]]. It would be great if one could provide a type as a generic to QueryOutputTableTypeDef, such that Items could be typed as List[] instead.

Code sample

class MyExampleTableEntry(TypedDict):
    id: int
    name: str
    teams: set[str]

result: QueryOutputTableTypeDef[MyExampleTableEntry] = someTable.query(...)

Metadata

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