From 09a86ca9678621da2e420b262bb0e1867254d0a2 Mon Sep 17 00:00:00 2001 From: Curtis Bangert Date: Thu, 28 Sep 2023 16:31:28 -0400 Subject: [PATCH] corrected linter violations --- dbt_semantic_interfaces/parsing/schemas.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dbt_semantic_interfaces/parsing/schemas.py b/dbt_semantic_interfaces/parsing/schemas.py index 1728cde8..e278f358 100644 --- a/dbt_semantic_interfaces/parsing/schemas.py +++ b/dbt_semantic_interfaces/parsing/schemas.py @@ -1,4 +1,6 @@ -from referencing import Registry +from typing import Any, List + +from referencing import Registry, Resource from referencing.jsonschema import DRAFT7 from dbt_semantic_interfaces.parsing.schema_validator import SchemaValidator @@ -338,8 +340,9 @@ time_spine_table_configuration_schema["$id"]: time_spine_table_configuration_schema, } -resources = [(k, DRAFT7.create_resource(v)) for k, v in schema_store.items()] -registry = Registry().with_resources(resources) + +resources: List[tuple[str, Resource[Any]]] = [(str(k), DRAFT7.create_resource(v)) for k, v in schema_store.items()] +registry: Registry = Registry().with_resources(resources) semantic_model_validator = SchemaValidator(semantic_model_schema, registry=registry) metric_validator = SchemaValidator(metric_schema, registry=registry) project_configuration_validator = SchemaValidator(project_configuration_schema, registry=registry)