File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,11 +71,30 @@ await replane.close()
7171
7272### Type-safe with Generated Types
7373
74- Generate TypedDict types from the Replane dashboard for full type safety:
74+ Generate TypedDict types from the Replane dashboard for full type safety.
75+
76+ Example generated ` replane_types.py ` :
77+
78+ ``` python
79+ # replane_types.py - Generated from Replane dashboard
80+ from typing import List, TypedDict
81+
82+ class AppSettings (TypedDict ):
83+ maxUploadSizeMb: float
84+ allowedFileTypes: List[str ]
85+ maintenanceMode: bool
86+
87+ class Configs (TypedDict ):
88+ app- settings: AppSettings
89+ rate- limit: int
90+ feature- enabled: bool
91+ ```
92+
93+ Usage with generated types:
7594
7695``` python
7796from replane import Replane
78- from replane_types import Configs # Generated from dashboard
97+ from replane_types import Configs
7998
8099with Replane[Configs](
81100 base_url = " https://replane.example.com" ,
You can’t perform that action at this time.
0 commit comments