From 6779e15e6e96ec71b98cdc5327cdaf5cb36b7444 Mon Sep 17 00:00:00 2001 From: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> Date: Sun, 14 Jun 2026 15:20:29 +0530 Subject: [PATCH] Fix remaining mypy errors from full lib+test type check - annotate the headers dict in DatasetsService.display - declare container_name on the tee-stream integration test class --- lib/galaxy/webapps/galaxy/services/datasets.py | 2 +- test/integration/objectstore/test_direct_download_redirect.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/services/datasets.py b/lib/galaxy/webapps/galaxy/services/datasets.py index 444756f169b..a1fa8f203a5 100644 --- a/lib/galaxy/webapps/galaxy/services/datasets.py +++ b/lib/galaxy/webapps/galaxy/services/datasets.py @@ -690,7 +690,7 @@ class DatasetsService(ServiceBase, UsesVisualizationMixin): some point in the future without warning. Generally, data should be processed by its datatype prior to display (the default if raw is unspecified or explicitly false. """ - headers = {} + headers: dict[str, str] = {} rval: Any = "" try: dataset_manager = self.dataset_manager_by_type[hda_ldda] diff --git a/test/integration/objectstore/test_direct_download_redirect.py b/test/integration/objectstore/test_direct_download_redirect.py index b6462ed49d1..cffaa6b8dec 100644 --- a/test/integration/objectstore/test_direct_download_redirect.py +++ b/test/integration/objectstore/test_direct_download_redirect.py @@ -37,6 +37,7 @@ BOTO3_DIRECT_DOWNLOAD_CONFIG = string.Template(""" @integration_util.skip_unless_docker() class TestDirectDownloadRedirectIntegration(BaseObjectStoreIntegrationTestCase): + container_name: str object_store_cache_path: str @classmethod