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
chore: remove ty from backend type-check pipeline (#32782)
盐粒 Yanlibc6fd0b5dda6
diff --git a/Makefile b/Makefileindex 984e8676ee3..0aff26b3e5a 100644--- a/Makefile+++ b/Makefile@@ -68,10 +68,9 @@ lint:@echo "✅ Linting complete"type-check:- @echo "📝 Running type checks (basedpyright + mypy + ty)..."+ @echo "📝 Running type checks (basedpyright + mypy)..."@./dev/basedpyright-check $(PATH_TO_CHECK)@uv --directory api run mypy --exclude-gitignore --exclude 'tests/' --exclude 'migrations/' --check-untyped-defs --disable-error-code=import-untyped .- @cd api && uv run ty check@echo "✅ Type checks complete"test:@@ -132,7 +131,7 @@ help:@echo " make format - Format code with ruff"@echo " make check - Check code with ruff"@echo " make lint - Format, fix, and lint code (ruff, imports, dotenv)"- @echo " make type-check - Run type checks (basedpyright, mypy, ty)"+ @echo " make type-check - Run type checks (basedpyright, mypy)"@echo " make test - Run backend unit tests (or TARGET_TESTS=./api/tests/<target_tests>)"@echo ""@echo "Docker Build Targets:"diff --git a/api/core/rag/datasource/vdb/analyticdb/analyticdb_vector_openapi.py b/api/core/rag/datasource/vdb/analyticdb/analyticdb_vector_openapi.pyindex 77a0fa6cf21..702200e0ac0 100644--- a/api/core/rag/datasource/vdb/analyticdb/analyticdb_vector_openapi.py+++ b/api/core/rag/datasource/vdb/analyticdb/analyticdb_vector_openapi.py@@ -192,8 +192,8 @@ class AnalyticdbVectorOpenAPI:collection=self._collection_name,metrics=self.config.metrics,include_values=True,- vector=None, # ty: ignore [invalid-argument-type]- content=None, # ty: ignore [invalid-argument-type]+ vector=None,+ content=None,top_k=1,filter=f"ref_doc_id='{id}'",)@@ -211,7 +211,7 @@ class AnalyticdbVectorOpenAPI:namespace=self.config.namespace,namespace_password=self.config.namespace_password,collection=self._collection_name,- collection_data=None, # ty: ignore [invalid-argument-type]+ collection_data=None,collection_data_filter=f"ref_doc_id IN {ids_str}",)self._client.delete_collection_data(request)@@ -225,7 +225,7 @@ class AnalyticdbVectorOpenAPI:namespace=self.config.namespace,namespace_password=self.config.namespace_password,collection=self._collection_name,- collection_data=None, # ty: ignore [invalid-argument-type]+ collection_data=None,collection_data_filter=f"metadata_ ->> '{key}' = '{value}'",)self._client.delete_collection_data(request)@@ -249,7 +249,7 @@ class AnalyticdbVectorOpenAPI:include_values=kwargs.pop("include_values", True),metrics=self.config.metrics,vector=query_vector,- content=None, # ty: ignore [invalid-argument-type]+ content=None,top_k=kwargs.get("top_k", 4),filter=where_clause,)@@ -285,7 +285,7 @@ class AnalyticdbVectorOpenAPI:collection=self._collection_name,include_values=kwargs.pop("include_values", True),metrics=self.config.metrics,- vector=None, # ty: ignore [invalid-argument-type]+ vector=None,content=query,top_k=kwargs.get("top_k", 4),filter=where_clause,diff --git a/api/core/rag/datasource/vdb/couchbase/couchbase_vector.py b/api/core/rag/datasource/vdb/couchbase/couchbase_vector.pyindex 6df909ca943..9a4a65cf6f0 100644--- a/api/core/rag/datasource/vdb/couchbase/couchbase_vector.py+++ b/api/core/rag/datasource/vdb/couchbase/couchbase_vector.py@@ -306,7 +306,7 @@ class CouchbaseVector(BaseVector):def search_by_full_text(self, query: str, **kwargs: Any) -> list[Document]:top_k = kwargs.get("top_k", 4)try:- CBrequest = search.SearchRequest.create(search.QueryStringQuery("text:" + query)) # ty: ignore [too-many-positional-arguments]+ CBrequest = search.SearchRequest.create(search.QueryStringQuery("text:" + query))search_iter = self._scope.search(self._collection_name + "_search", CBrequest, SearchOptions(limit=top_k, fields=["*"]))diff --git a/api/pyproject.toml b/api/pyproject.tomlindex 24569504cc3..265addd7454 100644--- a/api/pyproject.toml+++ b/api/pyproject.toml@@ -116,7 +116,6 @@ dev = ["dotenv-linter~=0.5.0","faker~=38.2.0","lxml-stubs~=0.5.1",- "ty>=0.0.14","basedpyright~=1.31.0","ruff~=0.14.0","pytest~=8.3.2",diff --git a/api/ty.toml b/api/ty.tomldeleted file mode 100644index ace2b7c0e83..00000000000--- a/api/ty.toml+++ /dev/null@@ -1,50 +0,0 @@-[src]-exclude = [- # deps groups (A1/A2/B/C/D/E)- # B: app runner + prompt- "core/prompt",- "core/app/apps/base_app_runner.py",- "core/app/apps/workflow_app_runner.py",- "core/agent",- "core/plugin",- # C: services/controllers/fields/libs- "services",- "controllers/inner_api",- "controllers/console/app",- "controllers/console/explore",- "controllers/console/datasets",- "controllers/console/workspace",- "controllers/service_api/wraps.py",- "fields/conversation_fields.py",- "libs/external_api.py",- # D: observability + integrations- "core/ops",- "extensions",- # E: vector DB integrations- "core/rag/datasource/vdb",- # non-producition or generated code- "migrations",- "tests",- # targeted ignores for current type-check errors- # TODO(QuantumGhost): suppress type errors in HITL related code.- # fix the type error later- "configs/middleware/cache/redis_pubsub_config.py",- "extensions/ext_redis.py",- "models/execution_extra_content.py",- "tasks/workflow_execution_tasks.py",- "core/workflow/nodes/base/node.py",- "services/human_input_delivery_test_service.py",- "core/app/apps/advanced_chat/app_generator.py",- "controllers/console/human_input_form.py",- "controllers/console/app/workflow_run.py",- "repositories/sqlalchemy_api_workflow_node_execution_repository.py",- "extensions/logstore/repositories/logstore_api_workflow_run_repository.py",- "controllers/web/workflow_events.py",- "tasks/app_generate/workflow_execute_task.py",-]---[rules]-deprecated = "ignore"-unused-ignore-comment = "ignore"-# possibly-missing-attribute = "ignore"diff --git a/api/uv.lock b/api/uv.lockindex 79886ca9a77..4b18997367f 100644--- a/api/uv.lock+++ b/api/uv.lock@@ -1483,7 +1483,6 @@ dev = [{ name = "scipy-stubs" },{ name = "sseclient-py" },{ name = "testcontainers" },- { name = "ty" },{ name = "types-aiofiles" },{ name = "types-beautifulsoup4" },{ name = "types-cachetools" },@@ -1684,7 +1683,6 @@ dev = [{ name = "scipy-stubs", specifier = ">=1.15.3.0" },{ name = "sseclient-py", specifier = ">=1.8.0" },{ name = "testcontainers", specifier = "~=4.13.2" },- { name = "ty", specifier = ">=0.0.14" },{ name = "types-aiofiles", specifier = "~=24.1.0" },{ name = "types-beautifulsoup4", specifier = "~=4.12.0" },{ name = "types-cachetools", specifier = "~=5.5.0" },@@ -6278,30 +6276,6 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/70/26/2591b48412bde75e33bfd292034103ffe41743cacd03120e3242516cd143/transformers-4.56.2-py3-none-any.whl", hash = "sha256:79c03d0e85b26cb573c109ff9eafa96f3c8d4febfd8a0774e8bba32702dd6dde", size = 11608055, upload-time = "2025-09-19T15:16:23.736Z" },]-[[package]]-name = "ty"-version = "0.0.14"-source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/af/57/22c3d6bf95c2229120c49ffc2f0da8d9e8823755a1c3194da56e51f1cc31/ty-0.0.14.tar.gz", hash = "sha256:a691010565f59dd7f15cf324cdcd1d9065e010c77a04f887e1ea070ba34a7de2", size = 5036573, upload-time = "2026-01-27T00:57:31.427Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/99/cb/cc6d1d8de59beb17a41f9a614585f884ec2d95450306c173b3b7cc090d2e/ty-0.0.14-py3-none-linux_armv6l.whl", hash = "sha256:32cf2a7596e693094621d3ae568d7ee16707dce28c34d1762947874060fdddaa", size = 10034228, upload-time = "2026-01-27T00:57:53.133Z" },- { url = "https://files.pythonhosted.org/packages/f3/96/dd42816a2075a8f31542296ae687483a8d047f86a6538dfba573223eaf9a/ty-0.0.14-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:f971bf9805f49ce8c0968ad53e29624d80b970b9eb597b7cbaba25d8a18ce9a2", size = 9939162, upload-time = "2026-01-27T00:57:43.857Z" },- { url = "https://files.pythonhosted.org/packages/ff/b4/73c4859004e0f0a9eead9ecb67021438b2e8e5fdd8d03e7f5aca77623992/ty-0.0.14-py3-none-macosx_11_0_arm64.whl", hash = "sha256:45448b9e4806423523268bc15e9208c4f3f2ead7c344f615549d2e2354d6e924", size = 9418661, upload-time = "2026-01-27T00:58:03.411Z" },- { url = "https://files.pythonhosted.org/packages/58/35/839c4551b94613db4afa20ee555dd4f33bfa7352d5da74c5fa416ffa0fd2/ty-0.0.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee94a9b747ff40114085206bdb3205a631ef19a4d3fb89e302a88754cbbae54c", size = 9837872, upload-time = "2026-01-27T00:57:23.718Z" },- { url = "https://files.pythonhosted.org/packages/41/2b/bbecf7e2faa20c04bebd35fc478668953ca50ee5847ce23e08acf20ea119/ty-0.0.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6756715a3c33182e9ab8ffca2bb314d3c99b9c410b171736e145773ee0ae41c3", size = 9848819, upload-time = "2026-01-27T00:57:58.501Z" },- { url = "https://files.pythonhosted.org/packages/be/60/3c0ba0f19c0f647ad9d2b5b5ac68c0f0b4dc899001bd53b3a7537fb247a2/ty-0.0.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89d0038a2f698ba8b6fec5cf216a4e44e2f95e4a5095a8c0f57fe549f87087c2", size = 10324371, upload-time = "2026-01-27T00:57:29.291Z" },- { url = "https://files.pythonhosted.org/packages/24/32/99d0a0b37d0397b0a989ffc2682493286aa3bc252b24004a6714368c2c3d/ty-0.0.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2c64a83a2d669b77f50a4957039ca1450626fb474619f18f6f8a3eb885bf7544", size = 10865898, upload-time = "2026-01-27T00:57:33.542Z" },- { url = "https://files.pythonhosted.org/packages/1a/88/30b583a9e0311bb474269cfa91db53350557ebec09002bfc3fb3fc364e8c/ty-0.0.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:242488bfb547ef080199f6fd81369ab9cb638a778bb161511d091ffd49c12129", size = 10555777, upload-time = "2026-01-27T00:58:05.853Z" },- { url = "https://files.pythonhosted.org/packages/cd/a2/cb53fb6325dcf3d40f2b1d0457a25d55bfbae633c8e337bde8ec01a190eb/ty-0.0.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4790c3866f6c83a4f424fc7d09ebdb225c1f1131647ba8bdc6fcdc28f09ed0ff", size = 10412913, upload-time = "2026-01-27T00:57:38.834Z" },- { url = "https://files.pythonhosted.org/packages/42/8f/f2f5202d725ed1e6a4e5ffaa32b190a1fe70c0b1a2503d38515da4130b4c/ty-0.0.14-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:950f320437f96d4ea9a2332bbfb5b68f1c1acd269ebfa4c09b6970cc1565bd9d", size = 9837608, upload-time = "2026-01-27T00:57:55.898Z" },- { url = "https://files.pythonhosted.org/packages/f7/ba/59a2a0521640c489dafa2c546ae1f8465f92956fede18660653cce73b4c5/ty-0.0.14-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:4a0ec3ee70d83887f86925bbc1c56f4628bd58a0f47f6f32ddfe04e1f05466df", size = 9884324, upload-time = "2026-01-27T00:57:46.786Z" },- { url = "https://files.pythonhosted.org/packages/03/95/8d2a49880f47b638743212f011088552ecc454dd7a665ddcbdabea25772a/ty-0.0.14-py3-none-musllinux_1_2_i686.whl", hash = "sha256:a1a4e6b6da0c58b34415955279eff754d6206b35af56a18bb70eb519d8d139ef", size = 10033537, upload-time = "2026-01-27T00:58:01.149Z" },- { url = "https://files.pythonhosted.org/packages/e9/40/4523b36f2ce69f92ccf783855a9e0ebbbd0f0bb5cdce6211ee1737159ed3/ty-0.0.14-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:dc04384e874c5de4c5d743369c277c8aa73d1edea3c7fc646b2064b637db4db3", size = 10495910, upload-time = "2026-01-27T00:57:26.691Z" },- { url = "https://files.pythonhosted.org/packages/08/d5/655beb51224d1bfd4f9ddc0bb209659bfe71ff141bcf05c418ab670698f0/ty-0.0.14-py3-none-win32.whl", hash = "sha256:b20e22cf54c66b3e37e87377635da412d9a552c9bf4ad9fc449fed8b2e19dad2", size = 9507626, upload-time = "2026-01-27T00:57:41.43Z" },- { url = "https://files.pythonhosted.org/packages/b6/d9/c569c9961760e20e0a4bc008eeb1415754564304fd53997a371b7cf3f864/ty-0.0.14-py3-none-win_amd64.whl", hash = "sha256:e312ff9475522d1a33186657fe74d1ec98e4a13e016d66f5758a452c90ff6409", size = 10437980, upload-time = "2026-01-27T00:57:36.422Z" },- { url = "https://files.pythonhosted.org/packages/ad/0c/186829654f5bfd9a028f6648e9caeb11271960a61de97484627d24443f91/ty-0.0.14-py3-none-win_arm64.whl", hash = "sha256:b6facdbe9b740cb2c15293a1d178e22ffc600653646452632541d01c36d5e378", size = 9885831, upload-time = "2026-01-27T00:57:49.747Z" },-]-[[package]]name = "typer"version = "0.20.0"