You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# load_config.pyconfig=Config.from_path("settings.yaml")
fixed_config=Config()
fixed_config.merge(config, context=CaseNormalizer(normalize=str.lower, warn=True)
# warns here about MAIN needing to be renamed to mainsafely_usable_config=CaseSensitiveLookup(fixed_config)
defget_host(settings):
# legacy code, gets warning about MAIN and HOSTreturnsettings.MAIN.HOSTget_host(safely_usable_config)
The text was updated successfully, but these errors were encountered:
when migrating from other configuration systems, those sometimes are very lenient on how they deal with uppercase/lowercase/mixed case keys
it would be nice to be able to
example:
The text was updated successfully, but these errors were encountered: