mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-13 15:31:54 +08:00
Add some urllib annotations also for Python 3 (#4951)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user