1
0
Fork 0
Code Issues Pull requests Projects Releases 2 Packages Wiki Activity Actions Pages

Enforce strict Pyright gate

This commit is contained in:
Andraxion 2026-07-24 22:26:01 -04:00
parent 90898cfd63
commit 2841042b9c
16 changed files with 214 additions and 77 deletions

View file

@ -42,8 +42,7 @@ def compile_context(
profile = _profile(snapshot, profile_id)
selected_budget = profile.token_budget if budget is None else budget
if (
not isinstance(selected_budget, int)
or isinstance(selected_budget, bool)
isinstance(selected_budget, bool)
or selected_budget < 1
or selected_budget > snapshot.descriptor.limits.max_context_tokens
):