diff --git a/python-client/wmill/pyproject.toml b/python-client/wmill/pyproject.toml index 383086a43b..91c529102a 100644 --- a/python-client/wmill/pyproject.toml +++ b/python-client/wmill/pyproject.toml @@ -15,7 +15,7 @@ packages = [ include = ["wmill/py.typed"] [tool.poetry.dependencies] -python = "^3.10" +python = "^3.7" windmill-api = "^1.38.1" [build-system] diff --git a/python-client/wmill/wmill/client.py b/python-client/wmill/wmill/client.py index d6d2de5631..e0eda65403 100644 --- a/python-client/wmill/wmill/client.py +++ b/python-client/wmill/wmill/client.py @@ -27,9 +27,9 @@ class JobStatus(Enum): RUNNING = 2 COMPLETED = 3 -_client: AuthenticatedClient | None = None +_client: "AuthenticatedClient | None" = None -def create_client(base_url: str | None = None, token: str | None = None) -> AuthenticatedClient: +def create_client(base_url: "str | None" = None, token: "str | None" = None) -> AuthenticatedClient: env_base_url = os.environ.get("BASE_INTERNAL_URL") if env_base_url is not None: diff --git a/python-client/wmill_pg/pyproject.toml b/python-client/wmill_pg/pyproject.toml index c1f9394406..3464124344 100644 --- a/python-client/wmill_pg/pyproject.toml +++ b/python-client/wmill_pg/pyproject.toml @@ -15,7 +15,7 @@ packages = [ include = ["wmill_pg/py.typed"] [tool.poetry.dependencies] -python = "^3.10" +python = "^3.7" wmill = "^1.5.0" psycopg2-binary = "*" diff --git a/python-client/wmill_pg/wmill_pg/client.py b/python-client/wmill_pg/wmill_pg/client.py index 6fcb5987c1..73b5efc3fe 100644 --- a/python-client/wmill_pg/wmill_pg/client.py +++ b/python-client/wmill_pg/wmill_pg/client.py @@ -5,7 +5,7 @@ import wmill import psycopg2 -def query(query: str, connection: str | dict[str, Any] = "g/all/postgres") -> list[tuple[Any, ...]] | None: +def query(query: str, connection: "str | dict[str, Any]" = "g/all/postgres") -> "list[tuple[Any, ...]] | None": """ Query a postgres database using psycopg2 library underneath. See its documentation for more info.