Fix annotation of boto Key.set_contents_from_string (#2445)

Closes #1552
This commit is contained in:
Sebastian Rittau
2018-09-11 17:25:25 +02:00
committed by Jelle Zijlstra
parent 44bdf6c6c7
commit 27514df2bd

View File

@@ -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]] = ...,