Skip to content

Commit

Permalink
Use correct type hints to define common model attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 23, 2024
1 parent 331039f commit 8888715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def __declare_last__(cls):


class RepresentById:
id: int
id: Mapped[int]

def __repr__(self):
try:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 8888715

Please sign in to comment.