Skip to content

Commit

Permalink
Fix dbs statements type on py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
oldani committed Sep 28, 2024
1 parent 5e2d267 commit 8f0f793
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions python/sea_query/mysql.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List
from typing import Any, List, Tuple

from ._internal import (
DBEngine,
Expand All @@ -22,31 +22,31 @@ class SelectStatement(_SelectStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Mysql)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Mysql)


class UpdateStatement(_UpdateStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Mysql)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Mysql)


class InsertStatement(_InsertStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Mysql)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Mysql)


class DeleteStatement(_DeleteStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Mysql)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Mysql)


Expand Down
10 changes: 5 additions & 5 deletions python/sea_query/postgres.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List
from typing import Any, List, Tuple

from ._internal import (
DBEngine,
Expand All @@ -22,31 +22,31 @@ class SelectStatement(_SelectStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Postgres)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Postgres)


class UpdateStatement(_UpdateStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Postgres)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Postgres)


class InsertStatement(_InsertStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Postgres)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Postgres)


class DeleteStatement(_DeleteStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Postgres)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Postgres)


Expand Down
10 changes: 5 additions & 5 deletions python/sea_query/sqlite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, List
from typing import Any, List, Tuple

from ._internal import (
DBEngine,
Expand All @@ -19,31 +19,31 @@ class SelectStatement(_SelectStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Sqlite)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Sqlite)


class UpdateStatement(_UpdateStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Sqlite)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Sqlite)


class InsertStatement(_InsertStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Sqlite)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Sqlite)


class DeleteStatement(_DeleteStatement):
def to_string(self) -> str:
return super().to_string(DBEngine.Sqlite)

def build(self) -> tuple[str, List[Any]]:
def build(self) -> Tuple[str, List[Any]]:
return super().build(DBEngine.Sqlite)


Expand Down

0 comments on commit 8f0f793

Please sign in to comment.