diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..976ba02 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,2 @@ +[mypy] +ignore_missing_imports = True diff --git a/stac_validator/utilities.py b/stac_validator/utilities.py index a6b24e6..9172534 100644 --- a/stac_validator/utilities.py +++ b/stac_validator/utilities.py @@ -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: