From 2dac49be1e991f2246fd5a1472052f011eb7b528 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 22 Jan 2025 12:22:17 +0000 Subject: [PATCH] Proper subclassing of ``ModelManager`` generic class --- lib/galaxy/managers/hdcas.py | 2 +- lib/galaxy/managers/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/managers/hdcas.py b/lib/galaxy/managers/hdcas.py index 76d5ef10cdab..44f645f86c19 100644 --- a/lib/galaxy/managers/hdcas.py +++ b/lib/galaxy/managers/hdcas.py @@ -59,7 +59,7 @@ def set_collection_attributes(dataset_element, *payload): # TODO: to DatasetCollectionInstanceManager class HDCAManager( - base.ModelManager, + base.ModelManager[model.HistoryDatasetCollectionAssociation], secured.AccessibleManagerMixin, secured.OwnableManagerMixin, deletable.PurgableManagerMixin, diff --git a/lib/galaxy/managers/tools.py b/lib/galaxy/managers/tools.py index c6dbe471dc84..3b0e2756d932 100644 --- a/lib/galaxy/managers/tools.py +++ b/lib/galaxy/managers/tools.py @@ -30,7 +30,7 @@ from galaxy.managers.base import OrmFilterParsersType -class DynamicToolManager(ModelManager): +class DynamicToolManager(ModelManager[model.DynamicTool]): """Manages dynamic tools stored in Galaxy's database.""" model_class = model.DynamicTool