Skip to content

Fix for_paths when path is directory of tools#1312

Merged
mvdbeek merged 6 commits intogalaxyproject:masterfrom
mvdbeek:fix_for_paths
Nov 2, 2022
Merged

Fix for_paths when path is directory of tools#1312
mvdbeek merged 6 commits intogalaxyproject:masterfrom
mvdbeek:fix_for_paths

Conversation

@mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Nov 2, 2022

We'd previously return the directory type runnable, but with 0.75.1 we're expanding the directory into a list of workflow or tool runnables.
This makes it match the return type annotation.

Fixes #1311

We'd previously return the directory type runnable,
but with 0.75.1 we're expanding the directory into a list of
workflow or tool runnables.
This makes it match the return type annotation.

Fixes galaxyproject#1311 (comment)
@nsoranzo
Copy link
Member

nsoranzo commented Nov 2, 2022

That means we should also drop the @overload type annotations for for_path(), since now it can return a List[Runnable] also when return_all=False.

@mvdbeek
Copy link
Member Author

mvdbeek commented Nov 2, 2022

I guess we can also drop the return_all argument ...

mvdbeek and others added 3 commits November 2, 2022 14:47
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
@nsoranzo nsoranzo enabled auto-merge November 2, 2022 15:59
@mvdbeek mvdbeek disabled auto-merge November 2, 2022 16:35
@mvdbeek mvdbeek merged commit c647b58 into galaxyproject:master Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] between version 0.75.0 and 0.75.1 on autoupdate

2 participants