Skip to content

Commit

Permalink
fixup! fix(deps): prometheus_client 0.16 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jvansanten committed Feb 6, 2023
1 parent a53fe16 commit 92fe495
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ampel/metrics/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def prometheus_setup_worker(labels: None | dict[str,str] = None) -> None:
if labels:
from prometheus_client import values

def mmap_key(metric_name: str, name: str, labelnames: list[str], labelvalues: list[str], *args) -> str:
def mmap_key(metric_name: str, name: str, labelnames: tuple[str], labelvalues: tuple[str], *args) -> str:
return mmap_dict.mmap_key(
metric_name,
name,
list(labels.keys()) + labelnames,
list(labels.values()) + labelvalues,
tuple(labels.keys()) + labelnames,
tuple(labels.values()) + labelvalues,
*args,
)

Expand Down

0 comments on commit 92fe495

Please sign in to comment.