Skip to content

Commit

Permalink
Fix some multi-line strings that could be single line
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jan 29, 2025
1 parent 9cd7e93 commit df8c73d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,7 @@ def from_builder(
result.query_args["collections"] = builder.input_collections
else:
raise QuantumGraphBuilderError(
f"Unable to handle type {builder.dataset_query_constraint} "
"given as datasetQueryConstraint."
f"Unable to handle type {builder.dataset_query_constraint} given as datasetQueryConstraint."
)
builder.log.verbose("Querying for data IDs with arguments:")
builder.log.verbose(" dimensions=%s,", list(result.query_args["dimensions"].names))
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/base/pipeline_graph/_pipeline_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def diff_tasks(self, other: PipelineGraph) -> list[str]:
b = other.tasks[label]
if a.task_class != b.task_class:
messages.append(
f"Task {label!r} has class {a.task_class_name} in A, " f"but {b.task_class_name} in B."
f"Task {label!r} has class {a.task_class_name} in A, but {b.task_class_name} in B."
)
messages.extend(a.diff_edges(b))
return messages
Expand Down
3 changes: 1 addition & 2 deletions python/lsst/pipe/base/quantum_provenance_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,7 @@ def assemble_quantum_provenance_graph(
"""
if read_caveats not in ("lazy", "exhaustive", None):
raise TypeError(
f"Invalid option {read_caveats!r} for read_caveats; "
"should be 'lazy', 'exhaustive', or None."
f"Invalid option {read_caveats!r} for read_caveats; should be 'lazy', 'exhaustive', or None."
)
output_runs = []
for graph in qgraphs:
Expand Down

0 comments on commit df8c73d

Please sign in to comment.