From 817ccc92943bf0206aa4d128a121fe0012c42383 Mon Sep 17 00:00:00 2001 From: jonhealy1 Date: Fri, 10 Jan 2025 10:07:15 +0800 Subject: [PATCH] add mypy,ini --- mypy.ini | 2 ++ stac_validator/utilities.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 mypy.ini 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: