Add some urllib annotations also for Python 3 (#4951)

This commit is contained in:
Philipp Hahn
2021-01-20 11:29:18 +01:00
committed by GitHub
parent 8f7ce5be26
commit a7a6a32b0d
2 changed files with 3 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class Request(object):
type: Optional[str]
origin_req_host = ...
unredirected_hdrs: Dict[str, str]
timeout: Optional[float] # Undocumented, only set after __init__() by OpenerDirector.open()
def __init__(
self,
url: str,

View File

@@ -58,8 +58,10 @@ class Request:
selector: str
data: Optional[bytes]
headers: Dict[str, str]
unredirected_hdrs: Dict[str, str]
unverifiable: bool
method: Optional[str]
timeout: Optional[float] # Undocumented, only set after __init__() by OpenerDirector.open()
def __init__(
self,
url: str,