Enforce strict Pyright gate
This commit is contained in:
parent
90898cfd63
commit
2841042b9c
16 changed files with 214 additions and 77 deletions
|
|
@ -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
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue