From e3e6898a5b4e377c604c9b8e5adc3063d0d86b60 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Fri, 6 Nov 2026 23:14:24 +0800 Subject: [PATCH] Fix typos in docstrings Correct 'certicates' to 'certificates' in the HTTPServer docstring and 'mmaped' to 'mapped' in the MmapedValue docstring. Signed-off-by: Jah-yee <166608075+Jah-yee@users.noreply.github.com> --- prometheus_client/exposition.py | 2 +- prometheus_client/values.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus_client/exposition.py b/prometheus_client/exposition.py index cbdbb379..9b485f9e 100644 --- a/prometheus_client/exposition.py +++ b/prometheus_client/exposition.py @@ -667,7 +667,7 @@ def push_to_gateway( url, method, timeout, headers, and content May be used to implement additional functionality not supported by the built-in default handler (such as SSL - client certicates, and HTTP authentication mechanisms). + client certificates, and HTTP authentication mechanisms). 'url' is the URL for the request, the 'gateway' argument described earlier will form the basis of this URL. 'method' is the HTTP method which should be used when diff --git a/prometheus_client/values.py b/prometheus_client/values.py index 16c745ed..dc8d568c 100644 --- a/prometheus_client/values.py +++ b/prometheus_client/values.py @@ -69,7 +69,7 @@ def cleanup(): _multi_process_cleanups.append(cleanup) class MmapedValue: - """A float protected by a mutex backed by a per-process mmaped file.""" + """A float protected by a mutex backed by a per-process mapped file.""" _multiprocess = True