mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add more type information to requests.PreparedRequest
This commit is contained in:
committed by
Łukasz Langa
parent
b78eb48b26
commit
7fd08cf073
8
third_party/2/requests/models.pyi
vendored
8
third_party/2/requests/models.pyi
vendored
@@ -77,10 +77,10 @@ class Request(RequestHooksMixin):
|
||||
def prepare(self): ...
|
||||
|
||||
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
method = ... # type: Any
|
||||
url = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
method = ... # type: str
|
||||
url = ... # type: str
|
||||
headers = ... # type: Dict[str, str]
|
||||
body = ... # type: str
|
||||
hooks = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def prepare(self, method=..., url=..., headers=..., files=..., data=..., params=...,
|
||||
|
||||
8
third_party/3/requests/models.pyi
vendored
8
third_party/3/requests/models.pyi
vendored
@@ -78,10 +78,10 @@ class Request(RequestHooksMixin):
|
||||
def prepare(self): ...
|
||||
|
||||
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
method = ... # type: Any
|
||||
url = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
method = ... # type: str
|
||||
url = ... # type: str
|
||||
headers = ... # type: Dict[str, str]
|
||||
body = ... # type: str
|
||||
hooks = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
def prepare(self, method=..., url=..., headers=..., files=..., data=..., params=...,
|
||||
|
||||
Reference in New Issue
Block a user