File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ with Replane[Configs](
114114 settings = replane.configs[" app-settings" ]
115115
116116 # Full type safety - IDE knows the structure of settings
117- print (settings[" maxUploadSizeMb " ])
118- print (settings[" allowedFileTypes " ])
117+ print (settings[" max_upload_size_mb " ])
118+ print (settings[" allowed_file_types " ])
119119
120120 # Check if config exists
121121 if " feature-flag" in replane.configs:
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ Example generated `replane_types.py`:
8080from typing import List, TypedDict
8181
8282class AppSettings (TypedDict ):
83- maxUploadSizeMb : float
84- allowedFileTypes : List[str ]
85- maintenanceMode : bool
83+ max_upload_size_mb : float
84+ allowed_file_types : List[str ]
85+ maintenance_mode : bool
8686
8787class Configs (TypedDict ):
8888 app- settings: AppSettings
@@ -102,8 +102,8 @@ with Replane[Configs](
102102) as replane:
103103 # Dictionary-style access with full type safety
104104 settings = replane.configs[" app-settings" ]
105- print (settings[" maxUploadSizeMb " ]) # IDE knows the type
106- print (settings[" allowedFileTypes " ]) # Autocomplete works
105+ print (settings[" max_upload_size_mb " ]) # IDE knows the type
106+ print (settings[" allowed_file_types " ]) # Autocomplete works
107107```
108108
109109``` {toctree}
You can’t perform that action at this time.
0 commit comments