From e66076e345ecc16a4d19eb32eff2c0e495df481d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Ba=CC=88uerle?= Date: Mon, 22 Apr 2024 09:09:46 -0700 Subject: [PATCH 1/2] build: update python version to support types --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d923f7c..10b2f61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ packages = [{ include = "zeno_client" }] [tool.poetry.dependencies] pandas = ">=1.4.3" pyarrow = ">=6.0.0" -python = ">=3.8" +python = ">=3.10" pydantic = ">=1.0" requests = ">=2.20.0" arrow-json = "^0.9.0" From c491fc3f50ec827f73277f45befcfaadab5c9b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Ba=CC=88uerle?= Date: Mon, 22 Apr 2024 09:43:39 -0700 Subject: [PATCH 2/2] revert and remove | None --- pyproject.toml | 2 +- zeno_client/client.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 10b2f61..d923f7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ packages = [{ include = "zeno_client" }] [tool.poetry.dependencies] pandas = ">=1.4.3" pyarrow = ">=6.0.0" -python = ">=3.10" +python = ">=3.8" pydantic = ">=1.0" requests = ">=2.20.0" arrow-json = "^0.9.0" diff --git a/zeno_client/client.py b/zeno_client/client.py index 654a44d..cf777e4 100644 --- a/zeno_client/client.py +++ b/zeno_client/client.py @@ -1,4 +1,5 @@ """Functions to upload data to Zeno's backend.""" + import io import json import re @@ -305,10 +306,10 @@ def create_project( *, name: str, view: Union[str, Dict] = "", - description: str | None = None, + description: Optional[str] = None, metrics: List[ZenoMetric] = [], - samples_per_page: int | None = None, - public: bool | None = None, + samples_per_page: Optional[int] = None, + public: Optional[bool] = None, ) -> ZenoProject: """Creates an empty project in Zeno's backend.