Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat(typing): Remove "libs" from pyright exclude and fix typing errors (#26423)
Asuka Minatoe5d4235f1b9a
diff --git a/api/libs/external_api.py b/api/libs/external_api.pyindex cf91b0117fa..25a82f8a963 100644--- a/api/libs/external_api.py+++ b/api/libs/external_api.py@@ -94,7 +94,7 @@ def register_external_error_handlers(api: Api):got_request_exception.send(current_app, exception=e)status_code = 500- data = getattr(e, "data", {"message": http_status_message(status_code)})+ data: dict[str, Any] = getattr(e, "data", {"message": http_status_message(status_code)})# 🔒 Normalize non-mapping data (e.g., if someone set e.data = Response)if not isinstance(data, dict):diff --git a/api/libs/gmpy2_pkcs10aep_cipher.py b/api/libs/gmpy2_pkcs10aep_cipher.pyindex 9759156c0f0..fc38d51005b 100644--- a/api/libs/gmpy2_pkcs10aep_cipher.py+++ b/api/libs/gmpy2_pkcs10aep_cipher.py@@ -27,7 +27,7 @@ import gmpy2 # type: ignorefrom Crypto import Randomfrom Crypto.Signature.pss import MGF1from Crypto.Util.number import bytes_to_long, ceil_div, long_to_bytes-from Crypto.Util.py3compat import _copy_bytes, bord+from Crypto.Util.py3compat import bordfrom Crypto.Util.strxor import strxor@@ -72,7 +72,7 @@ class PKCS1OAepCipher:else:self._mgf = lambda x, y: MGF1(x, y, self._hashObj)- self._label = _copy_bytes(None, None, label)+ self._label = bytes(label)self._randfunc = randfuncdef can_encrypt(self):@@ -120,7 +120,7 @@ class PKCS1OAepCipher:# Step 2bps = b"\x00" * ps_len# Step 2c- db = lHash + ps + b"\x01" + _copy_bytes(None, None, message)+ db = lHash + ps + b"\x01" + bytes(message)# Step 2dros = self._randfunc(hLen)# Step 2ediff --git a/api/libs/sendgrid.py b/api/libs/sendgrid.pyindex ecc4b3fb982..a270fa70fa6 100644--- a/api/libs/sendgrid.py+++ b/api/libs/sendgrid.py@@ -14,7 +14,7 @@ class SendGridClient:def send(self, mail: dict):logger.debug("Sending email with SendGrid")-+ _to = ""try:_to = mail["to"]@@ -28,7 +28,7 @@ class SendGridClient:content = Content("text/html", mail["html"])sg_mail = Mail(from_email, to_email, subject, content)mail_json = sg_mail.get()- response = sg.client.mail.send.post(request_body=mail_json) # ty: ignore [call-non-callable]+ response = sg.client.mail.send.post(request_body=mail_json) # type: ignorelogger.debug(response.status_code)logger.debug(response.body)logger.debug(response.headers)diff --git a/api/pyrightconfig.json b/api/pyrightconfig.jsonindex 1b60212c2b0..9cb1ea9bf15 100644--- a/api/pyrightconfig.json+++ b/api/pyrightconfig.json@@ -6,7 +6,6 @@"migrations/","core/rag","extensions",- "libs","controllers/console/datasets","core/ops","core/model_runtime",