Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
febus982 committed Nov 21, 2023
1 parent 2e71941 commit 1dfb32a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sqlalchemy_bind_manager/_repository/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from enum import Enum
from functools import partial
from typing import Generic, List, TypeVar, Union
from typing import Callable, Generic, List, TypeVar, Union

from pydantic import BaseModel, StrictInt, StrictStr
from sqlalchemy import asc, desc
Expand Down Expand Up @@ -43,5 +43,5 @@ class CursorPaginatedResult(BaseModel, Generic[MODEL]):


class SortDirection(Enum):
ASC = partial(asc)
DESC = partial(desc)
ASC: Callable = partial(asc)
DESC: Callable = partial(desc)

0 comments on commit 1dfb32a

Please sign in to comment.