Skip to content

Commit

Permalink
Add type-ignores to handle late evaluation of relationship arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Feb 8, 2024
1 parent 5417aa6 commit 207299f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3043,7 +3043,7 @@ class History(Base, HasTags, Dictifiable, UsesAnnotations, HasName, Serializable
lambda: and_(
HistoryDatasetCollectionAssociation.history_id == History.id, # type: ignore[has-type]
not_(HistoryDatasetCollectionAssociation.deleted), # type: ignore[has-type, arg-type]
HistoryDatasetCollectionAssociation.visible, # type: ignore[has-type]
HistoryDatasetCollectionAssociation.visible, # type: ignore[has-type, arg-type]
)
),
order_by=lambda: asc(HistoryDatasetCollectionAssociation.hid), # type: ignore[has-type]
Expand Down Expand Up @@ -6037,8 +6037,9 @@ class LibraryInfoAssociation(Base, RepresentById):
"Library",
primaryjoin=(
lambda: and_(
LibraryInfoAssociation.library_id == Library.id, not_(LibraryInfoAssociation.deleted)
) # type:ignore[arg-type]
LibraryInfoAssociation.library_id == Library.id,
not_(LibraryInfoAssociation.deleted), # type:ignore[arg-type]
)
),
)
template = relationship(
Expand Down

0 comments on commit 207299f

Please sign in to comment.