Skip to content

Commit 077e777

Browse files
committed
Fixed lint
1 parent 331aa64 commit 077e777

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdks/python/apache_beam/testing/load_tests/dataflow_cost_benchmark.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ def _get_throughput_metrics(
191191
pcollection_name: Optional[str] = None,
192192
) -> dict[str, float]:
193193
"""Query Cloud Monitoring for per-PCollection throughput."""
194-
name = pcollection_name if pcollection_name is not None else self.pcollection
194+
name = (
195+
pcollection_name
196+
if pcollection_name is not None
197+
else self.pcollection)
195198
interval = monitoring_v3.TimeInterval(
196199
start_time=start_time, end_time=end_time)
197200
aggregation = monitoring_v3.Aggregation(

0 commit comments

Comments
 (0)