annotate stubs/treq/api.pyi @ 67:099c0a815bb7

stubs Ignore-this: c084e54b4fa9a6a8bd692add7e646f10
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 01 Jun 2019 20:02:47 +0000
parents 4f71d2a7a8d1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
1 # Stubs for treq.api (Python 3)
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
2 #
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
4
67
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
5 from typing import Any, Optional, Union
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
6
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
7 DataArg = Union[bytes] # str, file-like, IBodyProducer, or None
33
4f71d2a7a8d1 some low-quality mostly generated mypy stubs. should be shared with my other builds
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
8
67
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
9 def head(url: str, **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
10 def get(url: str, headers: Optional[Any] = ..., **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
11 def post(url: str, data: Optional[DataArg] = ..., **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
12 def put(url: str, data: Optional[DataArg] = ..., **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
13 def patch(url: str, data: Optional[DataArg] = ..., **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
14 def delete(url: str, **kwargs: Any): ...
Drew Perttula <drewp@bigasterisk.com>
parents: 33
diff changeset
15 def request(method: str, url: str, **kwargs: Any): ...