This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
_do_execute
(database function) could be more precisely typed with better support for ParamSpec
#12312
Closed
Description
Sprouted from #12311.
Once Mypy supports Concatenate, it could be written as
def _do_execute(
self,
func: Callable[Concatenate[str, P], R],
sql: str,
*args: P.args,
**kwargs: P.kwargs,
) -> R:
so long as we also pass kwargs.