TArg = TypeVar("TArg") TSelf = TypeVar("TSelf") def _prepared_insert_statement( table_name: str, columns: List[str] ) -> Callable[ [Callable[[TSelf, TArg, NamedArg(Any, "statement")], TRet]], Callable[[TSelf, TArg], TRet], ]: