diff --git a/lib/galaxy/managers/history_contents.py b/lib/galaxy/managers/history_contents.py index ae98f3b02d8..414d5f3eff1 100644 --- a/lib/galaxy/managers/history_contents.py +++ b/lib/galaxy/managers/history_contents.py @@ -409,7 +409,7 @@ class HistoryContentsManager(base.SortableManager): .options(undefer(component_class._metadata)) .options(joinedload("dataset.actions")) # TODO: use class attr after moving Dataset to declarative mapping. .options(joinedload(component_class.tags)) - .options(joinedload(component_class.annotations)) + .options(joinedload(component_class.annotations)) # type: ignore[attr-defined] ) return {row.id: row for row in query.all()}