mirror of
https://github.com/usestrix/strix.git
synced 2026-08-25 12:22:37 +02:00
refactor: replace type ignores with inline fallbacks
This commit is contained in:
+1
-1
@@ -18,6 +18,6 @@ class LLMConfig:
|
||||
self.enable_prompt_caching = enable_prompt_caching
|
||||
self.skills = skills or []
|
||||
|
||||
self.timeout = timeout or int(Config.get("llm_timeout")) # type: ignore[arg-type]
|
||||
self.timeout = timeout or int(Config.get("llm_timeout") or "300")
|
||||
|
||||
self.scan_mode = scan_mode if scan_mode in ["quick", "standard", "deep"] else "deep"
|
||||
|
||||
@@ -12,8 +12,8 @@ from strix.config import Config
|
||||
|
||||
class LLMRequestQueue:
|
||||
def __init__(self, max_concurrent: int = 1, delay_between_requests: float = 4.0):
|
||||
delay_between_requests = float(Config.get("llm_rate_limit_delay")) # type: ignore[arg-type]
|
||||
max_concurrent = int(Config.get("llm_rate_limit_concurrent")) # type: ignore[arg-type]
|
||||
delay_between_requests = float(Config.get("llm_rate_limit_delay") or "4.0")
|
||||
max_concurrent = int(Config.get("llm_rate_limit_concurrent") or "1")
|
||||
|
||||
self.max_concurrent = max_concurrent
|
||||
self.delay_between_requests = delay_between_requests
|
||||
|
||||
Reference in New Issue
Block a user