From 65802b903acf203503c11e515cd5ee79fdd29d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 23 Oct 2026 01:50:44 -0400 Subject: [PATCH] docs: fix grammar in ssl_context docstrings and example comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Léon Avic Simmons --- examples/get/asynchronous/custom_source_ip.py | 2 +- examples/get/asynchronous/getting_value.py | 2 +- examples/get/asynchronous/tls_psk_context.py | 2 +- zabbix_utils/aiogetter.py | 2 +- zabbix_utils/aiosender.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/get/asynchronous/custom_source_ip.py b/examples/get/asynchronous/custom_source_ip.py index f9260a4..7216d87 100644 --- a/examples/get/asynchronous/custom_source_ip.py +++ b/examples/get/asynchronous/custom_source_ip.py @@ -12,7 +12,7 @@ async def main(): The main function to perform asynchronous tasks. """ - # Create a AsyncGetter instance with specified parameters + # Create an AsyncGetter instance with specified parameters # Parameters: (host, port, source_ip) agent = AsyncGetter("127.0.0.1", 10050, source_ip="10.10.1.5") diff --git a/examples/get/asynchronous/getting_value.py b/examples/get/asynchronous/getting_value.py index 014e2e4..4e311d3 100644 --- a/examples/get/asynchronous/getting_value.py +++ b/examples/get/asynchronous/getting_value.py @@ -14,7 +14,7 @@ async def main(): The main function to perform asynchronous tasks. """ - # Create a AsyncGetter instance for querying Zabbix agent + # Create an AsyncGetter instance for querying Zabbix agent agent = AsyncGetter(host='127.0.0.1', port=10050) # Send a Zabbix agent query for network interface discovery diff --git a/examples/get/asynchronous/tls_psk_context.py b/examples/get/asynchronous/tls_psk_context.py index 7b74248..f5bf0b1 100644 --- a/examples/get/asynchronous/tls_psk_context.py +++ b/examples/get/asynchronous/tls_psk_context.py @@ -48,7 +48,7 @@ async def main(): The main function to perform asynchronous tasks. """ - # Create a AsyncGetter instance with a custom SSL context + # Create an AsyncGetter instance with a custom SSL context agent = AsyncGetter( host=ZABBIX_AGENT, port=ZABBIX_PORT, diff --git a/zabbix_utils/aiogetter.py b/zabbix_utils/aiogetter.py index abaa370..5b6c2d3 100644 --- a/zabbix_utils/aiogetter.py +++ b/zabbix_utils/aiogetter.py @@ -49,7 +49,7 @@ class AsyncGetter(): source_ip (str, optional): IP from which to establish connection. Defaults to `None`. - ssl_context (Callable, optional): Func(), returned prepared ssl.SSLContext. \ + ssl_context (Callable, optional): Func(), returning prepared ssl.SSLContext. \ Defaults to `None`. """ diff --git a/zabbix_utils/aiosender.py b/zabbix_utils/aiosender.py index 03c2584..79178bc 100644 --- a/zabbix_utils/aiosender.py +++ b/zabbix_utils/aiosender.py @@ -52,7 +52,7 @@ class AsyncSender(): source_ip (str, optional): IP from which to establish connection. Defaults to `None`. chunk_size (int, optional): Number of packets in one chunk. Defaults to `250`. clusters (tuple|list, optional): List of Zabbix clusters. Defaults to `None`. - ssl_context (Callable, optional): Func(`tls`), returned prepared ssl.SSLContext. \ + ssl_context (Callable, optional): Func(`tls`), returning prepared ssl.SSLContext. \ Defaults to `None`. compression (bool, optional): Specifying compression use. Defaults to `False`. config_path (str, optional): Path to Zabbix agent configuration file. Defaults to \