def load() -> typing.Dict[str, typing.Any]: config = tanker.config.load_from_env(prefix='STORE_', schema=SCHEMA) config.setdefault('DEBUG', config['ENVIRONMENT'] in {'local', 'test'}) return config
def load() -> typing.Dict[str, typing.Union[object, str]]: config = tanker.config.load_from_env(prefix="CRAWLER_", schema=SCHEMA) config.setdefault("DEBUG", config["ENVIRONMENT"] in {"local", "test"}) return config