@@ -35,19 +35,22 @@ def canonical_string(
35
35
headers : Dict [str , str ],
36
36
expires : Optional [int ] = ...,
37
37
provider : Optional [_Provider ] = ...,
38
- ): ...
38
+ ) -> str : ...
39
39
def merge_meta (
40
40
headers : Dict [str , str ],
41
41
metadata : Dict [str , str ],
42
42
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 ]: ...
45
48
def retry_url (
46
49
url : str ,
47
50
retry_on_404 : bool = ...,
48
51
num_retries : int = ...,
49
52
timeout : Optional [int ] = ...,
50
- ): ...
53
+ ) -> str : ...
51
54
52
55
class LazyLoadMetadata (Dict [_KT , _VT ]):
53
56
def __init__ (
@@ -84,7 +87,7 @@ ISO8601_MS = ... # type: str
84
87
RFC1123 = ... # type: str
85
88
LOCALE_LOCK = ... # type: _LockType
86
89
87
- def setlocale (name : Union [str , Tuple [str , str ]]): ...
90
+ def setlocale (name : Union [str , Tuple [str , str ]]) -> None : ...
88
91
def get_ts (ts : Optional [time .struct_time ] = ...) -> str : ...
89
92
def parse_ts (ts : str ) -> datetime .datetime : ...
90
93
def find_class (module_name : str , class_name : Optional [str ] = ...) -> Optional [Type [Any ]]: ...
@@ -163,7 +166,7 @@ class Password:
163
166
str : Optional [_str ] = ...,
164
167
hashfunc : Optional [Callable ] = ...,
165
168
) -> None : ...
166
- def set (self , value : Union [bytes , _str ]): ...
169
+ def set (self , value : Union [bytes , _str ]) -> None : ...
167
170
def __eq__ (self , other : Any ) -> bool : ...
168
171
def __len__ (self ) -> bool : ...
169
172
@@ -174,7 +177,7 @@ def notify(
174
177
to_string : Optional [str ] = ...,
175
178
attachments : Optional [Iterable ] = ...,
176
179
append_instance_id : bool = ...,
177
- ): ...
180
+ ) -> None : ...
178
181
def get_utf8_value (value : str ) -> str : ...
179
182
def mklist (value : Any ) -> List : ...
180
183
def pythonize_name (name : str ) -> str : ...
@@ -183,7 +186,7 @@ def write_mime_multipart(
183
186
compress : bool = ...,
184
187
deftype : str = ...,
185
188
delimiter : str = ...,
186
- ): ...
189
+ ) -> str : ...
187
190
def guess_mime_type (content : str , deftype : str ) -> str : ...
188
191
def compute_md5 (
189
192
fp : IO ,
@@ -205,7 +208,7 @@ class RequestHook:
205
208
request : boto .connection .HTTPRequest ,
206
209
response : boto .connection .HTTPResponse ,
207
210
error : bool = ...,
208
- ): ...
211
+ ) -> Any : ...
209
212
210
213
def host_is_ipv6 (hostname : str ) -> bool : ...
211
214
def parse_host (hostname : str ) -> str : ...
0 commit comments