Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add mypy,ini
Browse files Browse the repository at this point in the history
jonhealy1 committed Jan 10, 2025
1 parent 21614d3 commit 817ccc9
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
ignore_missing_imports = True
6 changes: 3 additions & 3 deletions stac_validator/utilities.py
Original file line number Diff line number Diff line change
@@ -264,10 +264,10 @@ def validate_with_ref_resolver(schema_path: str, content: dict) -> None:
raise FileNotFoundError(f"Schema file not found: {schema_path}") from e

# Set up the resource and registry for schema resolution
resource: Resource = Resource(contents=schema, specification=DRAFT202012) # type: ignore
registry: Registry = Registry(retrieve=cached_retrieve).with_resource( # type: ignore
resource: Resource = Resource(contents=schema, specification=DRAFT202012)
registry: Registry = Registry(retrieve=cached_retrieve).with_resource(
uri=schema_path, resource=resource
) # type: ignore
)

# Validate the content against the schema
try:

0 comments on commit 817ccc9

Please sign in to comment.