From 63039ce7586f15ca09f83e982d9fcfd60fc62061 Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Mon, 2 Nov 2026 00:15:55 +0100 Subject: [PATCH] fix(types): the adapter's ignore holds with and without requests' stubs CI installs types-requests, so HTTPAdapter is typed there and the ignore for subclassing an untyped base is unused; locally it is needed. --- napalm_device_types/tls_certificates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napalm_device_types/tls_certificates.py b/napalm_device_types/tls_certificates.py index d6e315e..6169383 100644 --- a/napalm_device_types/tls_certificates.py +++ b/napalm_device_types/tls_certificates.py @@ -273,7 +273,7 @@ def _pinned_adapter(hex_digest: str) -> Any: """ from requests.adapters import HTTPAdapter - class _PinnedAdapter(HTTPAdapter): # type: ignore[misc] + class _PinnedAdapter(HTTPAdapter): # type: ignore[misc,unused-ignore] def init_poolmanager(self, *args: Any, **kwargs: Any) -> None: kwargs["assert_fingerprint"] = hex_digest super().init_poolmanager(*args, **kwargs)