Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend dependency error change in #2989 to remaining two dependency types #3445

Merged
merged 2 commits into from
May 21, 2024

Conversation

benclifford
Copy link
Collaborator

Description

PR #2989 made dependency errors look nicer, but only did it for positional
parameters. This PR extends that to kwarg and inputs=... dependencies.

PR #2989 describes these changes in more depth.

This PR adds a type annotation onto DFK._unwrap_futures that drives this
change - preventing _unwrap_futures from returning None task ids for failed
dependencies and instead requiring the task IDs to be strings.

Type of change

  • Update to human readable text: Documentation/error messages/comments

PR #2989 made dependency errors look nicer, but only did it for positional
parameters. This PR extends that to kwarg and inputs=... dependencies.

PR #2989 describes these changes in more depth.

This PR adds a type annotation onto DFK._unwrap_futures that drives this
change - preventing _unwrap_futures from returning None task ids for failed
dependencies and instead requiring the task IDs to be strings.
Copy link
Collaborator

@khk-globus khk-globus left a comment

Choose a reason for hiding this comment

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

Subtle ... I'm going to call it a fix. Thanks DRY.

@benclifford benclifford merged commit 2d4ae85 into master May 21, 2024
6 checks passed
@benclifford benclifford deleted the benc-depexc-types branch May 21, 2024 16:01
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.

2 participants