# Stubs for tornado.util (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any

xrange = ... # type: Any

class ObjectDict(dict):
    def __getattr__(self, name): ...
    def __setattr__(self, name, value): ...

class GzipDecompressor:
    decompressobj = ... # type: Any
    def __init__(self) -> None: ...
    def decompress(self, value, max_length=...): ...
    @property
    def unconsumed_tail(self): ...
    def flush(self): ...

unicode_type = ... # type: Any
basestring_type = ... # type: Any

def import_object(name): ...

bytes_type = ... # type: Any

def errno_from_exception(e): ...

class Configurable:
    def __new__(cls, *args, **kwargs): ...
    @classmethod
    def configurable_base(cls): ...
    @classmethod
    def configurable_default(cls): ...
    def initialize(self): ...
    @classmethod
    def configure(cls, impl, **kwargs): ...
    @classmethod
    def configured_class(cls): ...

class ArgReplacer:
    name = ... # type: Any
    arg_pos = ... # type: Any
    def __init__(self, func, name) -> None: ...
    def get_old_value(self, args, kwargs, default=...): ...
    def replace(self, new_value, args, kwargs): ...

def timedelta_to_seconds(td): ...
def doctests(): ...
