Skip to content

Commit 1dfb32a

Browse files
committed
Fix typing
1 parent 2e71941 commit 1dfb32a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sqlalchemy_bind_manager/_repository/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from enum import Enum
22
from functools import partial
3-
from typing import Generic, List, TypeVar, Union
3+
from typing import Callable, Generic, List, TypeVar, Union
44

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

4444

4545
class SortDirection(Enum):
46-
ASC = partial(asc)
47-
DESC = partial(desc)
46+
ASC: Callable = partial(asc)
47+
DESC: Callable = partial(desc)

0 commit comments

Comments
 (0)