From a02aacf1b5012e2e27e5d3a427b5bf654f5ed3b9 Mon Sep 17 00:00:00 2001 From: user <70670632+stuxf@users.noreply.github.com> Date: Thu, 30 Apr 2026 20:01:43 -0700 Subject: [PATCH] fix(proxy): type openapi snapshot operation ids --- litellm/proxy/_lazy_openapi_snapshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/_lazy_openapi_snapshot.py b/litellm/proxy/_lazy_openapi_snapshot.py index 2aa9dcca742..51cbd6eb989 100644 --- a/litellm/proxy/_lazy_openapi_snapshot.py +++ b/litellm/proxy/_lazy_openapi_snapshot.py @@ -10,7 +10,7 @@ any drift as a neutral check. import json import sys from pathlib import Path -from typing import Dict, Optional +from typing import Dict, Optional, Set SNAPSHOT_FILE = Path(__file__).parent / "_lazy_openapi_snapshot.json" @@ -43,7 +43,7 @@ def generate_snapshot() -> Dict[str, Dict]: sys.stderr.write(f"warning: skip {feat.name}: {exc}\n") fragments: Dict[str, Dict] = {} - used_operation_ids = set() + used_operation_ids: Set[str] = set() for feat in LAZY_FEATURES: feat_routes = [ r