mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
A couple new definitions, some more unicode for 2.7 (#185)
* Action.__init__(); ArgumentParser.__init__() & print_help()
* pprint() & pformat()
* added unicode support to url{parse,split,join,defrag}
* add unicode support to requests.api
This commit is contained in:
committed by
Guido van Rossum
parent
eab591bb08
commit
0be5a11496
17
third_party/2.7/requests/api.pyi
vendored
17
third_party/2.7/requests/api.pyi
vendored
@@ -1,14 +1,15 @@
|
||||
# Stubs for requests.api (Python 3)
|
||||
|
||||
import typing
|
||||
from typing import Union
|
||||
|
||||
from .models import Response
|
||||
|
||||
def request(method: str, url: str, **kwargs) -> Response: ...
|
||||
def get(url: str, **kwargs) -> Response: ...
|
||||
def options(url: str, **kwargs) -> Response: ...
|
||||
def head(url: str, **kwargs) -> Response: ...
|
||||
def post(url: str, data=..., json=..., **kwargs) -> Response: ...
|
||||
def put(url: str, data=..., **kwargs) -> Response: ...
|
||||
def patch(url: str, data=..., **kwargs) -> Response: ...
|
||||
def delete(url: str, **kwargs) -> Response: ...
|
||||
def get(url: Union[str, unicode], **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=...,
|
||||
**kwargs) -> Response: ...
|
||||
def put(url: Union[str, unicode], data=..., **kwargs) -> Response: ...
|
||||
def patch(url: Union[str, unicode], data=..., **kwargs) -> Response: ...
|
||||
def delete(url: Union[str, unicode], **kwargs) -> Response: ...
|
||||
|
||||
Reference in New Issue
Block a user