From 97cdc161daafc801d5c132fb10e673624a94b2d6 Mon Sep 17 00:00:00 2001 From: darnodo Date: Wed, 31 Dec 2025 17:48:29 +0100 Subject: [PATCH] docs(gnmi): remove async context manager references from client Remove outdated async documentation from GNMIClient module: - Remove async context manager from feature list - Remove async usage example from class docstring The client now only documents synchronous usage patterns. --- src/gnmi/client.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/gnmi/client.py b/src/gnmi/client.py index 9ce3324..87c0179 100644 --- a/src/gnmi/client.py +++ b/src/gnmi/client.py @@ -3,7 +3,6 @@ gNMI Client Wrapper for Fabric Orchestrator. This module provides a high-level gNMI client using pygnmi with: - Connection management -- Async context manager support - Error handling with meaningful exceptions """ @@ -82,10 +81,6 @@ class GNMIClient: Provides high-level methods for gNMI operations with proper error handling and context manager support. - Usage: - async with GNMIClient(host="leaf1", port=6030, ...) as client: - caps = await client.capabilities() - Or synchronously: with GNMIClient(host="leaf1", port=6030, ...) as client: caps = client.capabilities()