Skip to content

Commit 903c48e

Browse files
committed
chore: update docs
1 parent a2007cf commit 903c48e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

docs/source/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ Example generated `replane_types.py`:
8080
from typing import List, TypedDict
8181

8282
class 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

8787
class 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}

0 commit comments

Comments
 (0)