Skip to content

Commit 3561d29

Browse files
author
Max Rozentsveyg
committed
More return values
1 parent 6c28d5c commit 3561d29

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

third_party/2and3/boto/utils.pyi

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,22 @@ def canonical_string(
3535
headers: Dict[str, str],
3636
expires: Optional[int] = ...,
3737
provider: Optional[_Provider] = ...,
38-
): ...
38+
) -> str: ...
3939
def merge_meta(
4040
headers: Dict[str, str],
4141
metadata: Dict[str, str],
4242
provider: Optional[_Provider] = ...,
43-
): ...
44-
def get_aws_metadata(headers: Dict[str, str], provider: Optional[_Provider] = ...): ...
43+
) -> Dict[str, str]: ...
44+
def get_aws_metadata(
45+
headers: Dict[str, str],
46+
provider: Optional[_Provider] = ...,
47+
) -> Dict[str, str]: ...
4548
def retry_url(
4649
url: str,
4750
retry_on_404: bool = ...,
4851
num_retries: int = ...,
4952
timeout: Optional[int] = ...,
50-
): ...
53+
) -> str: ...
5154

5255
class LazyLoadMetadata(Dict[_KT, _VT]):
5356
def __init__(
@@ -84,7 +87,7 @@ ISO8601_MS = ... # type: str
8487
RFC1123 = ... # type: str
8588
LOCALE_LOCK = ... # type: _LockType
8689

87-
def setlocale(name: Union[str, Tuple[str, str]]): ...
90+
def setlocale(name: Union[str, Tuple[str, str]]) -> None: ...
8891
def get_ts(ts: Optional[time.struct_time] = ...) -> str: ...
8992
def parse_ts(ts: str) -> datetime.datetime: ...
9093
def find_class(module_name: str, class_name: Optional[str] = ...) -> Optional[Type[Any]]: ...
@@ -163,7 +166,7 @@ class Password:
163166
str: Optional[_str] = ...,
164167
hashfunc: Optional[Callable] = ...,
165168
) -> None: ...
166-
def set(self, value: Union[bytes, _str]): ...
169+
def set(self, value: Union[bytes, _str]) -> None: ...
167170
def __eq__(self, other: Any) -> bool: ...
168171
def __len__(self) -> bool: ...
169172

@@ -174,7 +177,7 @@ def notify(
174177
to_string: Optional[str] = ...,
175178
attachments: Optional[Iterable] = ...,
176179
append_instance_id: bool = ...,
177-
): ...
180+
) -> None: ...
178181
def get_utf8_value(value: str) -> str: ...
179182
def mklist(value: Any) -> List: ...
180183
def pythonize_name(name: str) -> str: ...
@@ -183,7 +186,7 @@ def write_mime_multipart(
183186
compress: bool = ...,
184187
deftype: str = ...,
185188
delimiter: str = ...,
186-
): ...
189+
) -> str: ...
187190
def guess_mime_type(content: str, deftype: str) -> str: ...
188191
def compute_md5(
189192
fp: IO,
@@ -205,7 +208,7 @@ class RequestHook:
205208
request: boto.connection.HTTPRequest,
206209
response: boto.connection.HTTPResponse,
207210
error: bool = ...,
208-
): ...
211+
) -> Any: ...
209212

210213
def host_is_ipv6(hostname: str) -> bool: ...
211214
def parse_host(hostname: str) -> str: ...

0 commit comments

Comments
 (0)