From 5c5c9ba36781a9aadfb637ff3cbac4b0d3baf556 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Wed, 6 Aug 2025 20:23:46 +0800 Subject: [PATCH] Add comment for `# pragma: no branch` about `TYPE_CHECKING` --- python/openai_harmony/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/openai_harmony/__init__.py b/python/openai_harmony/__init__.py index 0ae2acf..436ed7a 100644 --- a/python/openai_harmony/__init__.py +++ b/python/openai_harmony/__init__.py @@ -60,7 +60,7 @@ if not TYPE_CHECKING: _PyHarmonyEncoding = _Stub() _PyStreamableParser = _Stub() _HarmonyError = RuntimeError -else: # pragma: no branch +else: # pragma: no branch - TYPE_CHECKING is always False at runtime from .openai_harmony import ( HarmonyError as HarmonyError, # expose the actual Rust error directly )