fix(python-client): provide backwards compatibility down to python3.7 (#738) (#739)

this reverts 79b176cbbd introducing
alternative way of avoiding bug described in
https://github.com/windmill-labs/windmill/issues/736#issuecomment-1279679730

the improvement here is that we're able to support more python versions
now
This commit is contained in:
Jakub Kołodziejczak
2022-10-15 10:27:07 +02:00
committed by GitHub
parent 79b176cbbd
commit 52f6db2e81
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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]
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -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 = "*"
+1 -1
View File
@@ -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.