Skip to content

Build and run agents you can see, understand and trust.

feat(typing): add `py.typed` to enable static type checking support (#988)

Charlie Zhao62aa63919f6b
diff --git a/pyproject.toml b/pyproject.toml
index bf3588c63..211f0137a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -83,6 +83,10 @@ Repository = "https://github.com/agentscope-ai/agentscope"
[tool.setuptools]
packages = { find = { where = ["src"] } }
+include-package-data = true
+
+[tool.setuptools.package-data]
+"*" = ["py.typed"]
[build-system]
requires = ["setuptools>=45", "wheel"]
diff --git a/src/agentscope/py.typed b/src/agentscope/py.typed
new file mode 100644
index 000000000..e69de29bb