Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbilge committed Nov 27, 2024
1 parent 1110dab commit c926786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/metldata/transform/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class ArtifactResource(BaseModel):
...,
description="A rooted datapack describing the resource and all its dependencies.",
)
schema: SchemaPack = Field(
model: SchemaPack = Field(
...,
description="A rooted schemapack describing the schema of the rooted datapack.",
)
Expand Down Expand Up @@ -297,6 +297,6 @@ def resource_iterator(self) -> Generator[ArtifactResource, None, None]:
class_name=class_name,
resource_id=resource_id,
datapack=rooted_datapack,
schema=rooted_schemapack,
model=rooted_schemapack,
integrated=integrated_json,
)
2 changes: 1 addition & 1 deletion tests/transform/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def test_workflow_artifact_resource_iterator():
observed_resources_by_class = defaultdict(set)
for resource in resources:
# check that the datapacks of all resources are rooted:
assert resource.class_name == resource.schema.rootClass
assert resource.class_name == resource.model.rootClass
assert resource.resource_id == resource.datapack.rootResource

observed_resources_by_class[resource.class_name].add(resource.resource_id)
Expand Down

0 comments on commit c926786

Please sign in to comment.