Mercurial > code > home > repos > light9
diff stubs/treq/content.pyi @ 1863:0f0ff27e55a3
stubs, mostly autogen or empty
Ignore-this: bc70818d2bc92bf022c65c3572b9775e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 12:01:26 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/treq/content.pyi Sat May 25 12:01:26 2019 +0000 @@ -0,0 +1,18 @@ +# Stubs for treq.content (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet.protocol import Protocol +from typing import Any + +class _BodyCollector(Protocol): + finished: Any = ... + collector: Any = ... + def __init__(self, finished: Any, collector: Any) -> None: ... + def dataReceived(self, data: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + +def collect(response: Any, collector: Any): ... +def content(response: Any): ... +def json_content(response: Any, **kwargs: Any): ... +def text_content(response: Any, encoding: str = ...): ...