diff --git a/python/astro_metadata_translator/headers.py b/python/astro_metadata_translator/headers.py index c5c75c69..423840b5 100644 --- a/python/astro_metadata_translator/headers.py +++ b/python/astro_metadata_translator/headers.py @@ -351,7 +351,7 @@ def _find_from_resource( Name of resource read. `None` if no corrections found. """ if package is not None and resource_root is not None: - resource_path = resources.files(package).joinpath(resource_root, target_file) # type: ignore + resource_path = resources.files(package).joinpath(resource_root, target_file) if resource_path.is_file(): resource_uri = f"resource://{package}/{posixpath.join(resource_root, target_file)}" log.debug("Applying header corrections from package resource %s", resource_uri)