Skip to content

Commit

Permalink
database - remove unnecessary explicit TypeAlias type
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 25, 2024
1 parent e26d597 commit c6d8921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions acacore/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from typing import overload
from typing import Self
from typing import Type
from typing import TypeAlias
from typing import TypeVar

from pydantic import BaseModel
Expand All @@ -21,7 +20,7 @@
from .table_view import View

_M = TypeVar("_M", bound=BaseModel)
_P: TypeAlias = Sequence[SQLValue] | Mapping[str, SQLValue]
_P = Sequence[SQLValue] | Mapping[str, SQLValue]


class Database:
Expand Down
3 changes: 1 addition & 2 deletions acacore/database/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Literal
from typing import Self
from typing import Type
from typing import TypeAlias
from typing import TypeVar

from pydantic import BaseModel
Expand All @@ -16,7 +15,7 @@
from .cursor import Cursor

_M = TypeVar("_M", bound=BaseModel)
_W: TypeAlias = str | dict[str, SQLValue | list[SQLValue]]
_W = str | dict[str, SQLValue | list[SQLValue]]


def _where_dict_to_sql(where: dict[str, SQLValue | list[SQLValue]]) -> tuple[str, list[SQLValue]]:
Expand Down

0 comments on commit c6d8921

Please sign in to comment.