From 9e62b7df06dd7c2469f1c9dd2ebd51537e599a2b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 26 Jan 2016 15:28:26 -0800 Subject: [PATCH] Add urllib.response stub for Python 3. --- stdlib/3/urllib/response.pyi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 stdlib/3/urllib/response.pyi diff --git a/stdlib/3/urllib/response.pyi b/stdlib/3/urllib/response.pyi new file mode 100644 index 000000000..20b01ea75 --- /dev/null +++ b/stdlib/3/urllib/response.pyi @@ -0,0 +1,32 @@ +from typing import Any + +class addbase: + fp = ... # type: Any + read = ... # type: Any + readline = ... # type: Any + readlines = ... # type: Any + fileno = ... # type: Any + __iter__ = ... # type: Any + next = ... # type: Any + def __init__(self, fp) -> None: ... + def close(self): ... + +class addclosehook(addbase): + closehook = ... # type: Any + hookargs = ... # type: Any + def __init__(self, fp, closehook, *hookargs) -> None: ... + def close(self): ... + +class addinfo(addbase): + headers = ... # type: Any + def __init__(self, fp, headers) -> None: ... + def info(self): ... + +class addinfourl(addbase): + headers = ... # type: Any + url = ... # type: Any + code = ... # type: Any + def __init__(self, fp, headers, url, code=...) -> None: ... + def info(self): ... + def getcode(self): ... + def geturl(self): ...