mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
SQLAlchemy: Use ParamSpec for Engine.transaction() and Engine.run_callable() (#8718)
This commit is contained in:
@@ -183,12 +183,10 @@ class Engine(Connectable, Identified):
|
||||
) -> None: ...
|
||||
|
||||
def begin(self, close_with_result: bool = ...) -> _trans_ctx: ...
|
||||
# TODO:
|
||||
# def transaction(self, callable_: Callable[Concatenate[Connection, _P], _T], *args: _P.args, **kwargs: _P.kwargs) -> _T | None: ...
|
||||
def transaction(self, callable_: Callable[..., _T], *args: Any, **kwargs: Any) -> _T | None: ...
|
||||
# TODO:
|
||||
# def run_callable(self, callable_: Callable[Concatenate[Connection, _P], _T], *args: _P.args, **kwargs: _P.kwargs) -> _T: ...
|
||||
def run_callable(self, callable_: Callable[..., _T], *args: Any, **kwargs: Any) -> _T: ...
|
||||
def transaction(
|
||||
self, callable_: Callable[Concatenate[Connection, _P], _T], *args: _P.args, **kwargs: _P.kwargs
|
||||
) -> _T | None: ...
|
||||
def run_callable(self, callable_: Callable[Concatenate[Connection, _P], _T], *args: _P.args, **kwargs: _P.kwargs) -> _T: ...
|
||||
@overload # type: ignore[override]
|
||||
def execute(self, statement: _Executable, *multiparams: Mapping[str, Any], **params: Any) -> CursorResult: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user