Skip to content

Commit

Permalink
corrected linter violations
Browse files Browse the repository at this point in the history
  • Loading branch information
codecae committed Sep 28, 2023
1 parent b02b487 commit 09a86ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dbt_semantic_interfaces/parsing/schemas.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 09a86ca

Please sign in to comment.