Skip to content

Commit 5109388

Browse files
committed
Change expect functions to return Any
1 parent dcb7b0e commit 5109388

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

sqlalchemy-stubs/sql/coercions.pyi

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ from typing import Iterable
44
from typing import Iterator
55
from typing import Optional
66
from typing import Tuple
7-
from typing import TypeVar
87

98
from . import roles
109

11-
_T = TypeVar("_T")
12-
1310
elements: ModuleType
1411
lambdas: ModuleType
1512
schema: ModuleType
@@ -18,16 +15,16 @@ sqltypes: ModuleType
1815
traversals: ModuleType
1916

2017
def expect(
21-
role: _T,
18+
role: Any,
2219
element: Any,
2320
apply_propagate_attrs: Optional[Any] = ...,
2421
argname: Optional[Any] = ...,
2522
**kw: Any,
26-
) -> _T: ...
27-
def expect_as_key(role: _T, element: Any, **kw: Any) -> _T: ...
23+
) -> Any: ...
24+
def expect_as_key(role: Any, element: Any, **kw: Any) -> Any: ...
2825
def expect_col_expression_collection(
29-
role: _T, expressions: Iterable[Any]
30-
) -> Iterator[Tuple[_T, Any, str, Any]]: ...
26+
role: Any, expressions: Iterable[Any]
27+
) -> Iterator[Tuple[Any, Any, str, Any]]: ...
3128

3229
class RoleImpl:
3330
name: str = ...

0 commit comments

Comments
 (0)