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

DM-45896: adapt to change in QG builder #348

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

TallJimbo
Copy link
Member

No description provided.

Copy link
Contributor

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good.

@@ -649,7 +651,7 @@ def __init__(
@classmethod
def _add_gather_task(
cls, pipeline_graph: PipelineGraph, input_metadata_dataset_type: DatasetType
) -> tuple[str, str]:
) -> tuple[str | None, str | None]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should it be

tuple[str , str] | tuple[None, None]

instead?

Label of the new task in the pipeline, or `None` if the given
dataset type is not a metadata dataset type or is itself a
gatherResourceUsage metadata dataset type.
gather_dataset_type_name : `str or `None`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
gather_dataset_type_name : `str or `None`
gather_dataset_type_name : `str` or `None`

This is another reminder that MyPy isn't actually being run in this
package despite all of the type annotations (DM-40716), and I suspect
it was never seen at runtime because the CLI automatically avoids these
cases.  But that's no reason to leave it broken at a lower level.
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