mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
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:
committed by
GitHub
parent
79b176cbbd
commit
52f6db2e81
@@ -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]
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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 = "*"
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user