Coverage for src/prisma/generator/types.py: 100%
14 statements
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2024-08-27 18:25 +0000
1from typing import Mapping, Optional
3from .._types import TypedDict
5__all__ = (
6 'PartialModel',
7 'PartialModelField',
8)
11class PartialModelField(TypedDict):
12 name: str
13 is_list: bool
14 optional: bool
15 type: str
16 documentation: Optional[str]
17 is_relational: bool
20class PartialModel(TypedDict):
21 name: str
22 from_model: str
23 fields: Mapping[str, PartialModelField]