view 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 source

# 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 = ...): ...