mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
fix: narrow compressed type for mypy 1.14 in ContentRouter.compress
This commit is contained in:
parent
07bcda2796
commit
05fe6c0102
1 changed files with 3 additions and 0 deletions
|
|
@ -1341,6 +1341,9 @@ class ContentRouter(Transform):
|
|||
f"{decision_reason}_fallback_log_after_no_savings"
|
||||
)
|
||||
|
||||
# Re-narrow for mypy: all reassignments above produce str, but
|
||||
# mypy 1.14.x widens after nested try/except/else reassignments.
|
||||
assert compressed is not None
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
_log_router_debug(
|
||||
"content_router_strategy_result",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue