diff --git a/third_party/2/requests/api.pyi b/third_party/2/requests/api.pyi index 0f1377943..785439e00 100644 --- a/third_party/2/requests/api.pyi +++ b/third_party/2/requests/api.pyi @@ -1,11 +1,17 @@ # Stubs for requests.api (Python 3) -from typing import Union +from typing import Union, Optional, AnyStr from .models import Response def request(method: str, url: str, **kwargs) -> Response: ... -def get(url: Union[str, unicode], **kwargs) -> Response: ... + +def get(url: Union[str, unicode], + params: Optional[Union[dict[Union[str, unicode], + Union[str, unicode]], + Union[str, unicode]]]=None, + **kwargs) -> Response: ... + def options(url: Union[str, unicode], **kwargs) -> Response: ... def head(url: Union[str, unicode], **kwargs) -> Response: ... def post(url: Union[str, unicode], data=..., json=..., diff --git a/third_party/3/requests/api.pyi b/third_party/3/requests/api.pyi index 7b041280f..f5f1ec31d 100644 --- a/third_party/3/requests/api.pyi +++ b/third_party/3/requests/api.pyi @@ -1,11 +1,15 @@ # Stubs for requests.api (Python 3) -import typing +from typing import Optional, Union, Any from .models import Response def request(method: str, url: str, **kwargs) -> Response: ... -def get(url: str, **kwargs) -> Response: ... +def get(url: Union[str, bytes], + params: Optional[Union[str, + bytes, + dict[Union[str, bytes], Union[str, bytes]]]]=None, + **kwargs) -> Response: ... def options(url: str, **kwargs) -> Response: ... def head(url: str, **kwargs) -> Response: ... def post(url: str, data=..., json=..., **kwargs) -> Response: ...