Add comment for # pragma: no branch about TYPE_CHECKING

This commit is contained in:
Xuehai Pan 2025-08-06 20:23:46 +08:00
parent cc2a2ce2bf
commit 5c5c9ba367

View file

@ -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
)