mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add urllib.response stub for Python 3.
This commit is contained in:
32
stdlib/3/urllib/response.pyi
Normal file
32
stdlib/3/urllib/response.pyi
Normal file
@@ -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): ...
|
||||
Reference in New Issue
Block a user