Skip to content

Type annotations and refactorings#21673

Merged
nsoranzo merged 3 commits into
galaxyproject:devfrom
nsoranzo:19112_redux
Jan 27, 2026
Merged

Type annotations and refactorings#21673
nsoranzo merged 3 commits into
galaxyproject:devfrom
nsoranzo:19112_redux

Conversation

@nsoranzo

Copy link
Copy Markdown
Member

Extracted the uncontroversial changes from #19112 .

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

…th_metadata_options_filter`` API tests

Duplicates of `lib/galaxy_test/api/test_tool_execute.py::test_deferred_basic`
and ``lib/galaxy_test/api/test_tool_execute.py::test_deferred_with_metadata_options_filter``
respectively.

@mvdbeek mvdbeek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


@property
def execute(self) -> "DescribeToolExecution":
execution = DescribeToolExecution(self._dataset_populator, self._tool_id)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely uncontroversial. I loved how the old call lines were so optimized and legible. I'd rather have a property execute_with_job_cache to match execute. I'll admit a property that changes state is a Python anti-pattern though.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reviewing! I don't feel having to add () makes it less legible, but I do agree on the second part :)

@nsoranzo
nsoranzo merged commit 64d5c22 into galaxyproject:dev Jan 27, 2026
61 of 63 checks passed
@nsoranzo
nsoranzo deleted the 19112_redux branch January 27, 2026 19:39
@github-actions

Copy link
Copy Markdown

This PR was merged without a "kind/" label, please correct.

@nsoranzo nsoranzo added kind/enhancement kind/refactoring cleanup or refactoring of existing code, no functional changes labels Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/job-caching area/testing/api area/testing kind/enhancement kind/refactoring cleanup or refactoring of existing code, no functional changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants