Verified Commit f1cbd407 authored by David Runge's avatar David Runge
Browse files

Ignore untyped call to prometheus-client function

arch_release_promotion/files.py:
Ignore untyped call to `text_fd_to_metric_families()` in
`read_metric_file()`.
parent eb6f1eb9
Pipeline #17311 passed with stages
in 50 seconds
......@@ -251,7 +251,7 @@ def read_metrics_file(
if path.exists():
with open(path, "r") as file:
for metric in text_fd_to_metric_families(file):
for metric in text_fd_to_metric_families(file): # type: ignore[no-untyped-call]
for sample in metric.samples:
if (
version_metrics_names
......@@ -298,6 +298,7 @@ def read_metrics_file(
amount=sample.value,
)
]
return (amount_metrics, size_metrics, version_metrics)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment