mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 18:05:57 +08:00
Fix annotation of boto Key.set_contents_from_string (#2445)
Closes #1552
This commit is contained in:
committed by
Jelle Zijlstra
parent
44bdf6c6c7
commit
27514df2bd
4
third_party/2and3/boto/s3/key.pyi
vendored
4
third_party/2and3/boto/s3/key.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, Optional, Text, overload
|
||||
from typing import Any, Callable, Dict, Optional, Text, Union, overload
|
||||
|
||||
class Key:
|
||||
DefaultContentType: str
|
||||
@@ -156,7 +156,7 @@ class Key:
|
||||
): ...
|
||||
def set_contents_from_string(
|
||||
self,
|
||||
string_data: Text,
|
||||
string_data: Union[Text, bytes],
|
||||
headers: Optional[Dict[Text, Text]] = ...,
|
||||
replace: bool = ...,
|
||||
cb: Optional[Callable[[int, int], Any]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user