diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-10-16 20:56:46 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-10-16 20:56:46 -0700 |
commit | 5a07892bfc58472c1b651f66deaf03176bfe79df (patch) | |
tree | 6b6a7f449721c3b3515c9ae36e5be03b610c7967 /netlib/http/response.py | |
parent | 3fbce7e981cab5d20b3ef17a50f14b34e8c60fa3 (diff) | |
download | mitmproxy-5a07892bfc58472c1b651f66deaf03176bfe79df.tar.gz mitmproxy-5a07892bfc58472c1b651f66deaf03176bfe79df.tar.bz2 mitmproxy-5a07892bfc58472c1b651f66deaf03176bfe79df.zip |
py2--: inline type info
Diffstat (limited to 'netlib/http/response.py')
-rw-r--r-- | netlib/http/response.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/netlib/http/response.py b/netlib/http/response.py index 30bec2df..02a93fa7 100644 --- a/netlib/http/response.py +++ b/netlib/http/response.py @@ -8,11 +8,11 @@ from netlib.http import cookies from netlib.http import headers as nheaders from netlib.http import message from netlib.http import status_codes -from typing import AnyStr # noqa -from typing import Dict # noqa -from typing import Iterable # noqa -from typing import Tuple # noqa -from typing import Union # noqa +from typing import AnyStr +from typing import Dict +from typing import Iterable +from typing import Tuple +from typing import Union class ResponseData(message.MessageData): @@ -69,9 +69,9 @@ class Response(message.Message): @classmethod def make( cls, - status_code=200, # type: int - content=b"", # type: AnyStr - headers=() # type: Union[Dict[AnyStr, AnyStr], Iterable[Tuple[bytes, bytes]]] + status_code: int=200, + content: AnyStr=b"", + headers: Union[Dict[AnyStr, AnyStr], Iterable[Tuple[bytes, bytes]]]=() ): """ Simplified API for creating response objects. @@ -130,8 +130,7 @@ class Response(message.Message): self.data.reason = message._always_bytes(reason) @property - def cookies(self): - # type: () -> multidict.MultiDictView + def cookies(self) -> multidict.MultiDictView: """ The response cookies. A possibly empty :py:class:`~netlib.multidict.MultiDictView`, where the keys are cookie |