def get_from_dict(cls, raw_dict: dict) -> "Config": # required to avoid cyclical imports from packit.schema import UserConfigSchema config = UserConfigSchema(strict=True).load(raw_dict).data return config
def get_from_dict(cls, raw_dict: dict) -> "Config": # required to avoid cyclical imports from packit.schema import UserConfigSchema config = UserConfigSchema().load_config(raw_dict) logger.debug(f"Loaded config: {config}") return config