Esempio n. 1
0
    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
Esempio n. 2
0
    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