Skip to content

Commit

Permalink
[BEAM-13051] Fixed parameters warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-mike committed Mar 2, 2022
1 parent 3ece301 commit 74b0308
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def publish_metrics(self, result, extra_metrics: Optional[dict] = None):
for publisher in self.publishers:
publisher.publish(insert_dicts)

def _prepare_extra_metrics(self, extra_metrics: Optional[dict], metric_id: str):
def _prepare_extra_metrics(
self, extra_metrics: Optional[dict] = {}, metric_id: str):
ts = time.time()
return [
Metric(ts, metric_id, v, label=k).as_dict() for k,
Expand Down

0 comments on commit 74b0308

Please sign in to comment.