Improve boto callbacks (#8201)

This commit is contained in:
Alex Waygood
2022-06-28 13:30:26 +01:00
committed by GitHub
parent 2ffa756bb5
commit 79556345ac

View File

@@ -108,7 +108,7 @@ class Key:
self,
fp,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
query_args: Any | None = ...,
chunked_transfer: bool = ...,
@@ -121,7 +121,7 @@ class Key:
fp,
headers: dict[str, str] | None = ...,
replace: bool = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
policy: Any | None = ...,
reduced_redundancy: bool = ...,
@@ -133,7 +133,7 @@ class Key:
fp,
headers: dict[str, str] | None = ...,
replace: bool = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
policy: Any | None = ...,
md5: Any | None = ...,
@@ -148,7 +148,7 @@ class Key:
filename,
headers: dict[str, str] | None = ...,
replace: bool = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
policy: Any | None = ...,
md5: Any | None = ...,
@@ -160,7 +160,7 @@ class Key:
string_data: str | bytes,
headers: dict[str, str] | None = ...,
replace: bool = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
policy: Any | None = ...,
md5: Any | None = ...,
@@ -171,7 +171,7 @@ class Key:
self,
fp,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
torrent: bool = ...,
version_id: Any | None = ...,
@@ -179,13 +179,13 @@ class Key:
response_headers: dict[str, str] | None = ...,
): ...
def get_torrent_file(
self, fp, headers: dict[str, str] | None = ..., cb: Callable[[int, int], Any] | None = ..., num_cb: int = ...
self, fp, headers: dict[str, str] | None = ..., cb: Callable[[int, int], object] | None = ..., num_cb: int = ...
): ...
def get_contents_to_file(
self,
fp,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
torrent: bool = ...,
version_id: Any | None = ...,
@@ -196,7 +196,7 @@ class Key:
self,
filename,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
torrent: bool = ...,
version_id: Any | None = ...,
@@ -207,7 +207,7 @@ class Key:
def get_contents_as_string(
self,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
torrent: bool = ...,
version_id: Any | None = ...,
@@ -218,7 +218,7 @@ class Key:
def get_contents_as_string(
self,
headers: dict[str, str] | None = ...,
cb: Callable[[int, int], Any] | None = ...,
cb: Callable[[int, int], object] | None = ...,
num_cb: int = ...,
torrent: bool = ...,
version_id: Any | None = ...,