Skip to content

Commit

Permalink
Merge pull request #18284 from mvdbeek/fix_up_first_dataset_element_t…
Browse files Browse the repository at this point in the history
…ype_hint

[24.0] Fix first_dataset_element type hint
  • Loading branch information
mvdbeek authored May 31, 2024
2 parents 8dd7a9e + 99aeade commit d5e44b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6507,7 +6507,7 @@ def dataset_elements_and_identifiers(self, identifiers=None):
return elements

@property
def first_dataset_element(self) -> Optional[HistoryDatasetAssociation]:
def first_dataset_element(self) -> Optional["DatasetCollectionElement"]:
for element in self.elements:
if element.is_collection:
first_element = element.child_collection.first_dataset_element
Expand Down

0 comments on commit d5e44b6

Please sign in to comment.