Skip to content

Commit 8bfd0fe

Browse files
febus982claude
andcommitted
Fix type annotation for order_by function registry
Use Callable instead of type since asc/desc are functions, not types. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 04e9afc commit 8bfd0fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sqlalchemy_bind_manager/_repository/base_repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from abc import ABC
2222
from typing import (
2323
Any,
24+
Callable,
2425
Dict,
2526
Generic,
2627
Iterable,
@@ -130,7 +131,7 @@ def _filter_order_by(
130131
:param order_by: a list of columns, or tuples (column, direction)
131132
:return: The filtered query
132133
"""
133-
_order_funcs: Dict[Literal["asc", "desc"], type] = {
134+
_order_funcs: Dict[Literal["asc", "desc"], Callable] = {
134135
"desc": desc,
135136
"asc": asc,
136137
}

0 commit comments

Comments
 (0)