-
-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
By default env_nested_delimiter=None but this value is not special-cased, leading to surprising (if not ourtight buggy) behavior with case_sensitive=True:
class Subsettings(BaseSettings):
foo: str
class Settings(BaseSettings):
subsettings: Subsettings
model_config = SettingsConfigDict(case_sensitive=True)
env.set('subsettingsNonefoo', 'abc')
s = Settings()
assert s.subsettings.foo == 'abc'Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working