From fa3fb7a2232ec0bcbc531dc68425ef6848c018d2 Mon Sep 17 00:00:00 2001 From: John Davis Date: Fri, 19 Jan 2024 10:45:58 -0500 Subject: [PATCH] Use correct type hints to define common model attrs --- lib/galaxy/model/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index a9b9d3daf3ee..f119ae5c4908 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -259,7 +259,7 @@ def __declare_last__(cls): class RepresentById: - id: int + id: Mapped[int] def __repr__(self): try: @@ -418,7 +418,7 @@ def get_display_name(self): class UsesCreateAndUpdateTime: - update_time: DateTime + update_time: Mapped[Optional[DateTime]] @property def seconds_since_updated(self):