Skip to content

Commit

Permalink
Ignore mypy [arg-type] errors on unmodified functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kysrpex committed Nov 28, 2024
1 parent a88ffd0 commit 62c8955
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions lib/galaxy/managers/model_stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@ def prepare_history_content_download(self, request: GenerateHistoryContentDownlo
) as export_store:
if request.content_type == HistoryContentType.dataset:
hda = self._sa_session.get(model.HistoryDatasetAssociation, request.content_id)
export_store.add_dataset(hda)
export_store.add_dataset(hda) # type: ignore[arg-type]
else:
hdca = self._sa_session.get(model.HistoryDatasetCollectionAssociation, request.content_id)
export_store.export_collection(
hdca, include_hidden=request.include_hidden, include_deleted=request.include_deleted
hdca, # type: ignore[arg-type]
include_hidden=request.include_hidden,
include_deleted=request.include_deleted,
)

def prepare_invocation_download(self, request: GenerateInvocationDownload):
Expand All @@ -161,7 +163,9 @@ def prepare_invocation_download(self, request: GenerateInvocationDownload):
)(short_term_storage_target.path) as export_store:
invocation = self._sa_session.get(model.WorkflowInvocation, request.invocation_id)
export_store.export_workflow_invocation(
invocation, include_hidden=request.include_hidden, include_deleted=request.include_deleted
invocation, # type: ignore[arg-type]
include_hidden=request.include_hidden,
include_deleted=request.include_deleted,
)

def write_invocation_to(self, request: WriteInvocationTo):
Expand All @@ -178,7 +182,9 @@ def write_invocation_to(self, request: WriteInvocationTo):
)(target_uri) as export_store:
invocation = self._sa_session.get(model.WorkflowInvocation, request.invocation_id)
export_store.export_workflow_invocation(
invocation, include_hidden=request.include_hidden, include_deleted=request.include_deleted
invocation, # type: ignore[arg-type]
include_hidden=request.include_hidden,
include_deleted=request.include_deleted,
)

def _bco_export_options(self, request: BcoGenerationTaskParametersMixin):
Expand All @@ -202,11 +208,13 @@ def write_history_content_to(self, request: WriteHistoryContentTo):
)(target_uri) as export_store:
if request.content_type == HistoryContentType.dataset:
hda = self._sa_session.get(model.HistoryDatasetAssociation, request.content_id)
export_store.add_dataset(hda)
export_store.add_dataset(hda) # type: ignore[arg-type]
else:
hdca = self._sa_session.get(model.HistoryDatasetCollectionAssociation, request.content_id)
export_store.export_collection(
hdca, include_hidden=request.include_hidden, include_deleted=request.include_deleted
hdca, # type: ignore[arg-type]
include_hidden=request.include_hidden,
include_deleted=request.include_deleted,
)

def write_history_to(self, request: WriteHistoryTo):
Expand Down

0 comments on commit 62c8955

Please sign in to comment.