Alex Willmer <[email protected]> added the comment:
A data point found while I researched this
MyPy typeshed [1] currently declares
_DataType = Union[bytes, IO[Any], Iterable[bytes], str]
class HTTPConnection:
def send(self, data: _DataType) -> None: ...
[1]
https://github.com/python/typeshed/blob/e2967a8beee9e079963ea91a67087ba8fded1d0b/stdlib/http/client.pyi#L26
----------
nosy: +Alex.Willmer
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue23740>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com