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 19, 2024
1 parent 1eba891 commit fa3fb7a
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 fa3fb7a

Please sign in to comment.