mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 08:38:26 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
62
third_party/2/OpenSSL/crypto.pyi
vendored
62
third_party/2/OpenSSL/crypto.pyi
vendored
@@ -5,11 +5,11 @@ from typing import Any, Callable, Iterable, List, Optional, Set, Text, Tuple, Un
|
||||
from cryptography.hazmat.primitives.asymmetric import dsa, rsa
|
||||
from datetime import datetime
|
||||
|
||||
FILETYPE_PEM = ... # type: int
|
||||
FILETYPE_ASN1 = ... # type: int
|
||||
FILETYPE_TEXT = ... # type: int
|
||||
TYPE_RSA = ... # type: int
|
||||
TYPE_DSA = ... # type: int
|
||||
FILETYPE_PEM: int
|
||||
FILETYPE_ASN1: int
|
||||
FILETYPE_TEXT: int
|
||||
TYPE_RSA: int
|
||||
TYPE_DSA: int
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
@@ -26,26 +26,26 @@ class PKey:
|
||||
def bits(self) -> int: ...
|
||||
|
||||
class _EllipticCurve:
|
||||
name = ... # type: Text
|
||||
name: Text
|
||||
|
||||
def get_elliptic_curves() -> Set[_EllipticCurve]: ...
|
||||
def get_elliptic_curve(name: str) -> _EllipticCurve: ...
|
||||
|
||||
class X509Name:
|
||||
def __init__(self, name: X509Name) -> None: ...
|
||||
countryName = ... # type: Union[str, unicode]
|
||||
stateOrProvinceName = ... # type: Union[str, unicode]
|
||||
localityName = ... # type: Union[str, unicode]
|
||||
organizationName = ... # type: Union[str, unicode]
|
||||
organizationalUnitName = ... # type: Union[str, unicode]
|
||||
commonName = ... # type: Union[str, unicode]
|
||||
emailAddress = ... # type: Union[str, unicode]
|
||||
C = ... # type: Union[str, unicode]
|
||||
ST = ... # type: Union[str, unicode]
|
||||
L = ... # type: Union[str, unicode]
|
||||
O = ... # type: Union[str, unicode]
|
||||
OU = ... # type: Union[str, unicode]
|
||||
CN = ... # type: Union[str, unicode]
|
||||
countryName: Union[str, unicode]
|
||||
stateOrProvinceName: Union[str, unicode]
|
||||
localityName: Union[str, unicode]
|
||||
organizationName: Union[str, unicode]
|
||||
organizationalUnitName: Union[str, unicode]
|
||||
commonName: Union[str, unicode]
|
||||
emailAddress: Union[str, unicode]
|
||||
C: Union[str, unicode]
|
||||
ST: Union[str, unicode]
|
||||
L: Union[str, unicode]
|
||||
O: Union[str, unicode]
|
||||
OU: Union[str, unicode]
|
||||
CN: Union[str, unicode]
|
||||
def hash(self) -> int: ...
|
||||
def der(self) -> bytes: ...
|
||||
def get_components(self) -> List[Tuple[str, str]]: ...
|
||||
@@ -97,17 +97,17 @@ class X509:
|
||||
def get_extension(self, index: int) -> X509Extension: ...
|
||||
|
||||
class X509StoreFlags:
|
||||
CRL_CHECK = ... # type: int
|
||||
CRL_CHECK_ALL = ... # type: int
|
||||
IGNORE_CRITICAL = ... # type: int
|
||||
X509_STRICT = ... # type: int
|
||||
ALLOW_PROXY_CERTS = ... # type: int
|
||||
POLICY_CHECK = ... # type: int
|
||||
EXPLICIT_POLICY = ... # type: int
|
||||
INHIBIT_MAP = ... # type: int
|
||||
NOTIFY_POLICY = ... # type: int
|
||||
CHECK_SS_SIGNATURE = ... # type: int
|
||||
CB_ISSUER_CHECK = ... # type: int
|
||||
CRL_CHECK: int
|
||||
CRL_CHECK_ALL: int
|
||||
IGNORE_CRITICAL: int
|
||||
X509_STRICT: int
|
||||
ALLOW_PROXY_CERTS: int
|
||||
POLICY_CHECK: int
|
||||
EXPLICIT_POLICY: int
|
||||
INHIBIT_MAP: int
|
||||
NOTIFY_POLICY: int
|
||||
CHECK_SS_SIGNATURE: int
|
||||
CB_ISSUER_CHECK: int
|
||||
|
||||
class X509Store:
|
||||
def __init__(self) -> None: ...
|
||||
@@ -117,7 +117,7 @@ class X509Store:
|
||||
def set_time(self, vfy_time: datetime) -> None: ...
|
||||
|
||||
class X509StoreContextError(Exception):
|
||||
certificate = ... # type: X509
|
||||
certificate: X509
|
||||
def __init__(self, message: str, certificate: X509) -> None: ...
|
||||
|
||||
class X509StoreContext:
|
||||
|
||||
18
third_party/2/concurrent/futures/_base.pyi
vendored
18
third_party/2/concurrent/futures/_base.pyi
vendored
@@ -2,15 +2,15 @@ from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple, O
|
||||
from types import TracebackType
|
||||
import sys
|
||||
|
||||
FIRST_COMPLETED = ... # type: str
|
||||
FIRST_EXCEPTION = ... # type: str
|
||||
ALL_COMPLETED = ... # type: str
|
||||
PENDING = ... # type: Any
|
||||
RUNNING = ... # type: Any
|
||||
CANCELLED = ... # type: Any
|
||||
CANCELLED_AND_NOTIFIED = ... # type: Any
|
||||
FINISHED = ... # type: Any
|
||||
LOGGER = ... # type: Any
|
||||
FIRST_COMPLETED: str
|
||||
FIRST_EXCEPTION: str
|
||||
ALL_COMPLETED: str
|
||||
PENDING: Any
|
||||
RUNNING: Any
|
||||
CANCELLED: Any
|
||||
CANCELLED_AND_NOTIFIED: Any
|
||||
FINISHED: Any
|
||||
LOGGER: Any
|
||||
|
||||
class Error(Exception): ...
|
||||
class CancelledError(Error): ...
|
||||
|
||||
2
third_party/2/concurrent/futures/process.pyi
vendored
2
third_party/2/concurrent/futures/process.pyi
vendored
@@ -2,7 +2,7 @@ from typing import Any, Callable, Optional, Tuple
|
||||
from ._base import Future, Executor
|
||||
import sys
|
||||
|
||||
EXTRA_QUEUED_CALLS = ... # type: Any
|
||||
EXTRA_QUEUED_CALLS: Any
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class BrokenProcessPool(RuntimeError): ...
|
||||
|
||||
@@ -8,26 +8,26 @@ def load_der_public_key(data: bytes, backend): ...
|
||||
def load_ssh_public_key(data: bytes, backend): ...
|
||||
|
||||
class Encoding(Enum):
|
||||
PEM = ... # type: str
|
||||
DER = ... # type: str
|
||||
OpenSSH = ... # type: str
|
||||
PEM: str
|
||||
DER: str
|
||||
OpenSSH: str
|
||||
|
||||
class PrivateFormat(Enum):
|
||||
PKCS8 = ... # type: str
|
||||
TraditionalOpenSSL = ... # type: str
|
||||
PKCS8: str
|
||||
TraditionalOpenSSL: str
|
||||
|
||||
class PublicFormat(Enum):
|
||||
SubjectPublicKeyInfo = ... # type: str
|
||||
PKCS1 = ... # type: str
|
||||
OpenSSH = ... # type: str
|
||||
SubjectPublicKeyInfo: str
|
||||
PKCS1: str
|
||||
OpenSSH: str
|
||||
|
||||
class ParameterFormat(Enum):
|
||||
PKCS3 = ... # type: str
|
||||
PKCS3: str
|
||||
|
||||
class KeySerializationEncryption: ...
|
||||
|
||||
class BestAvailableEncryption(KeySerializationEncryption):
|
||||
password = ... # type: Any
|
||||
password: Any
|
||||
def __init__(self, password) -> None: ...
|
||||
|
||||
class NoEncryption(KeySerializationEncryption): ...
|
||||
|
||||
80
third_party/2/fb303/FacebookService.pyi
vendored
80
third_party/2/fb303/FacebookService.pyi
vendored
@@ -1,7 +1,7 @@
|
||||
from typing import Any
|
||||
from thrift.Thrift import TProcessor # type: ignore
|
||||
|
||||
fastbinary = ... # type: Any
|
||||
fastbinary: Any
|
||||
|
||||
class Iface:
|
||||
def getName(self): ...
|
||||
@@ -76,7 +76,7 @@ class Processor(Iface, TProcessor):
|
||||
def process_shutdown(self, seqid, iprot, oprot): ...
|
||||
|
||||
class getName_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -84,8 +84,8 @@ class getName_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getName_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -94,7 +94,7 @@ class getName_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getVersion_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -102,8 +102,8 @@ class getVersion_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getVersion_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -112,7 +112,7 @@ class getVersion_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getStatus_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -120,8 +120,8 @@ class getStatus_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getStatus_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -130,7 +130,7 @@ class getStatus_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getStatusDetails_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -138,8 +138,8 @@ class getStatusDetails_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getStatusDetails_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -148,7 +148,7 @@ class getStatusDetails_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCounters_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -156,8 +156,8 @@ class getCounters_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCounters_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -166,8 +166,8 @@ class getCounters_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCounter_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
thrift_spec: Any
|
||||
key: Any
|
||||
def __init__(self, key=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -176,8 +176,8 @@ class getCounter_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCounter_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -186,9 +186,9 @@ class getCounter_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class setOption_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
value = ... # type: Any
|
||||
thrift_spec: Any
|
||||
key: Any
|
||||
value: Any
|
||||
def __init__(self, key=..., value=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -197,7 +197,7 @@ class setOption_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class setOption_result:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -205,8 +205,8 @@ class setOption_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getOption_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
thrift_spec: Any
|
||||
key: Any
|
||||
def __init__(self, key=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -215,8 +215,8 @@ class getOption_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getOption_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -225,7 +225,7 @@ class getOption_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getOptions_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -233,8 +233,8 @@ class getOptions_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getOptions_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -243,8 +243,8 @@ class getOptions_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCpuProfile_args:
|
||||
thrift_spec = ... # type: Any
|
||||
profileDurationInSec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
profileDurationInSec: Any
|
||||
def __init__(self, profileDurationInSec=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -253,8 +253,8 @@ class getCpuProfile_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class getCpuProfile_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -263,7 +263,7 @@ class getCpuProfile_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class aliveSince_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -271,8 +271,8 @@ class aliveSince_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class aliveSince_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -281,7 +281,7 @@ class aliveSince_result:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class reinitialize_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -289,7 +289,7 @@ class reinitialize_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class shutdown_args:
|
||||
thrift_spec = ... # type: Any
|
||||
thrift_spec: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
|
||||
32
third_party/2/gflags.pyi
vendored
32
third_party/2/gflags.pyi
vendored
@@ -86,19 +86,19 @@ class FlagValues:
|
||||
# TODO validator: gflags_validators.Validator
|
||||
def AddValidator(self, validator: Any) -> None: ...
|
||||
|
||||
FLAGS = ... # type: FlagValues
|
||||
FLAGS: FlagValues
|
||||
|
||||
class Flag:
|
||||
name = ... # type: str
|
||||
default = ... # type: Any
|
||||
default_as_str = ... # type: str
|
||||
value = ... # type: Any
|
||||
help = ... # type: str
|
||||
short_name = ... # type: str
|
||||
name: str
|
||||
default: Any
|
||||
default_as_str: str
|
||||
value: Any
|
||||
help: str
|
||||
short_name: str
|
||||
boolean = False
|
||||
present = False
|
||||
parser = ... # type: ArgumentParser
|
||||
serializer = ... # type: ArgumentSerializer
|
||||
parser: ArgumentParser
|
||||
serializer: ArgumentSerializer
|
||||
allow_override = False
|
||||
|
||||
def __init__(self, parser: ArgumentParser, serializer: ArgumentSerializer, name: str,
|
||||
@@ -112,7 +112,7 @@ class Flag:
|
||||
def WriteInfoInXMLFormat(self, outfile: IO[str], module_name: str, is_key: bool = ..., indent: str = ...) -> None: ...
|
||||
|
||||
class ArgumentParser(object):
|
||||
syntactic_help = ... # type: str
|
||||
syntactic_help: str
|
||||
# TODO what is this
|
||||
def parse(self, argument: Any) -> Any: ...
|
||||
Parser = parse
|
||||
@@ -174,9 +174,9 @@ class NumericParser(ArgumentParser):
|
||||
def Convert(self, argument: Any) -> Any: ...
|
||||
|
||||
class FloatParser(NumericParser):
|
||||
number_article = ... # type: str
|
||||
number_name = ... # type: str
|
||||
syntactic_help = ... # type: str
|
||||
number_article: str
|
||||
number_name: str
|
||||
syntactic_help: str
|
||||
def __init__(self, lower_bound: float = ..., upper_bound: float = ...) -> None: ...
|
||||
def Convert(self, argument: Any) -> float: ...
|
||||
|
||||
@@ -184,9 +184,9 @@ def DEFINE_float(name: str, default: Optional[float], help: str, lower_bound: fl
|
||||
upper_bound: float = ..., flag_values: FlagValues = ..., **args: Any) -> None: ...
|
||||
|
||||
class IntegerParser(NumericParser):
|
||||
number_article = ... # type: str
|
||||
number_name = ... # type: str
|
||||
syntactic_help = ... # type: str
|
||||
number_article: str
|
||||
number_name: str
|
||||
syntactic_help: str
|
||||
def __init__(self, lower_bound: int = ..., upper_bound: int = ...) -> None: ...
|
||||
def Convert(self, argument: Any) -> int: ...
|
||||
|
||||
|
||||
70
third_party/2/kazoo/client.pyi
vendored
70
third_party/2/kazoo/client.pyi
vendored
@@ -1,39 +1,39 @@
|
||||
from typing import Any
|
||||
|
||||
string_types = ... # type: Any
|
||||
bytes_types = ... # type: Any
|
||||
LOST_STATES = ... # type: Any
|
||||
ENVI_VERSION = ... # type: Any
|
||||
ENVI_VERSION_KEY = ... # type: Any
|
||||
log = ... # type: Any
|
||||
string_types: Any
|
||||
bytes_types: Any
|
||||
LOST_STATES: Any
|
||||
ENVI_VERSION: Any
|
||||
ENVI_VERSION_KEY: Any
|
||||
log: Any
|
||||
|
||||
class KazooClient:
|
||||
logger = ... # type: Any
|
||||
handler = ... # type: Any
|
||||
auth_data = ... # type: Any
|
||||
default_acl = ... # type: Any
|
||||
randomize_hosts = ... # type: Any
|
||||
hosts = ... # type: Any
|
||||
chroot = ... # type: Any
|
||||
state = ... # type: Any
|
||||
state_listeners = ... # type: Any
|
||||
read_only = ... # type: Any
|
||||
retry = ... # type: Any
|
||||
Barrier = ... # type: Any
|
||||
Counter = ... # type: Any
|
||||
DoubleBarrier = ... # type: Any
|
||||
ChildrenWatch = ... # type: Any
|
||||
DataWatch = ... # type: Any
|
||||
Election = ... # type: Any
|
||||
NonBlockingLease = ... # type: Any
|
||||
MultiNonBlockingLease = ... # type: Any
|
||||
Lock = ... # type: Any
|
||||
Party = ... # type: Any
|
||||
Queue = ... # type: Any
|
||||
LockingQueue = ... # type: Any
|
||||
SetPartitioner = ... # type: Any
|
||||
Semaphore = ... # type: Any
|
||||
ShallowParty = ... # type: Any
|
||||
logger: Any
|
||||
handler: Any
|
||||
auth_data: Any
|
||||
default_acl: Any
|
||||
randomize_hosts: Any
|
||||
hosts: Any
|
||||
chroot: Any
|
||||
state: Any
|
||||
state_listeners: Any
|
||||
read_only: Any
|
||||
retry: Any
|
||||
Barrier: Any
|
||||
Counter: Any
|
||||
DoubleBarrier: Any
|
||||
ChildrenWatch: Any
|
||||
DataWatch: Any
|
||||
Election: Any
|
||||
NonBlockingLease: Any
|
||||
MultiNonBlockingLease: Any
|
||||
Lock: Any
|
||||
Party: Any
|
||||
Queue: Any
|
||||
LockingQueue: Any
|
||||
SetPartitioner: Any
|
||||
Semaphore: Any
|
||||
ShallowParty: Any
|
||||
def __init__(self, hosts=..., timeout=..., client_id=..., handler=..., default_acl=..., auth_data=..., read_only=...,
|
||||
randomize_hosts=..., connection_retry=..., command_retry=..., logger=..., **kwargs) -> None: ...
|
||||
@property
|
||||
@@ -80,9 +80,9 @@ class KazooClient:
|
||||
def reconfig_async(self, joining, leaving, new_members, from_config): ...
|
||||
|
||||
class TransactionRequest:
|
||||
client = ... # type: Any
|
||||
operations = ... # type: Any
|
||||
committed = ... # type: Any
|
||||
client: Any
|
||||
operations: Any
|
||||
committed: Any
|
||||
def __init__(self, client) -> None: ...
|
||||
def create(self, path, value=..., acl=..., ephemeral=..., sequence=...): ...
|
||||
def delete(self, path, version=...): ...
|
||||
|
||||
40
third_party/2/kazoo/exceptions.pyi
vendored
40
third_party/2/kazoo/exceptions.pyi
vendored
@@ -9,7 +9,7 @@ class ConnectionDropped(KazooException): ...
|
||||
class LockTimeout(KazooException): ...
|
||||
class WriterNotClosedException(KazooException): ...
|
||||
|
||||
EXCEPTIONS = ... # type: Any
|
||||
EXCEPTIONS: Any
|
||||
|
||||
class RolledBackError(ZookeeperError): ...
|
||||
class SystemZookeeperError(ZookeeperError): ...
|
||||
@@ -37,22 +37,22 @@ class SessionMovedError(ZookeeperError): ...
|
||||
class NotReadOnlyCallError(ZookeeperError): ...
|
||||
class ConnectionClosedError(SessionExpiredError): ...
|
||||
|
||||
ConnectionLossException = ... # type: Any
|
||||
MarshallingErrorException = ... # type: Any
|
||||
SystemErrorException = ... # type: Any
|
||||
RuntimeInconsistencyException = ... # type: Any
|
||||
DataInconsistencyException = ... # type: Any
|
||||
UnimplementedException = ... # type: Any
|
||||
OperationTimeoutException = ... # type: Any
|
||||
BadArgumentsException = ... # type: Any
|
||||
ApiErrorException = ... # type: Any
|
||||
NoNodeException = ... # type: Any
|
||||
NoAuthException = ... # type: Any
|
||||
BadVersionException = ... # type: Any
|
||||
NoChildrenForEphemeralsException = ... # type: Any
|
||||
NodeExistsException = ... # type: Any
|
||||
InvalidACLException = ... # type: Any
|
||||
AuthFailedException = ... # type: Any
|
||||
NotEmptyException = ... # type: Any
|
||||
SessionExpiredException = ... # type: Any
|
||||
InvalidCallbackException = ... # type: Any
|
||||
ConnectionLossException: Any
|
||||
MarshallingErrorException: Any
|
||||
SystemErrorException: Any
|
||||
RuntimeInconsistencyException: Any
|
||||
DataInconsistencyException: Any
|
||||
UnimplementedException: Any
|
||||
OperationTimeoutException: Any
|
||||
BadArgumentsException: Any
|
||||
ApiErrorException: Any
|
||||
NoNodeException: Any
|
||||
NoAuthException: Any
|
||||
BadVersionException: Any
|
||||
NoChildrenForEphemeralsException: Any
|
||||
NodeExistsException: Any
|
||||
InvalidACLException: Any
|
||||
AuthFailedException: Any
|
||||
NotEmptyException: Any
|
||||
SessionExpiredException: Any
|
||||
InvalidCallbackException: Any
|
||||
|
||||
14
third_party/2/kazoo/recipe/watchers.pyi
vendored
14
third_party/2/kazoo/recipe/watchers.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
log = ... # type: Any
|
||||
log: Any
|
||||
|
||||
class DataWatch:
|
||||
def __init__(self, client, path, func=..., *args, **kwargs) -> None: ...
|
||||
@@ -11,11 +11,11 @@ class ChildrenWatch:
|
||||
def __call__(self, func): ...
|
||||
|
||||
class PatientChildrenWatch:
|
||||
client = ... # type: Any
|
||||
path = ... # type: Any
|
||||
children = ... # type: Any
|
||||
time_boundary = ... # type: Any
|
||||
children_changed = ... # type: Any
|
||||
client: Any
|
||||
path: Any
|
||||
children: Any
|
||||
time_boundary: Any
|
||||
children_changed: Any
|
||||
def __init__(self, client, path, time_boundary=...) -> None: ...
|
||||
asy = ... # type: Any
|
||||
asy: Any
|
||||
def start(self): ...
|
||||
|
||||
16
third_party/2/pathlib2.pyi
vendored
16
third_party/2/pathlib2.pyi
vendored
@@ -11,14 +11,14 @@ else:
|
||||
_PurePathBase = object
|
||||
|
||||
class PurePath(_PurePathBase):
|
||||
parts = ... # type: Tuple[str, ...]
|
||||
drive = ... # type: str
|
||||
root = ... # type: str
|
||||
anchor = ... # type: str
|
||||
name = ... # type: str
|
||||
suffix = ... # type: str
|
||||
suffixes = ... # type: List[str]
|
||||
stem = ... # type: str
|
||||
parts: Tuple[str, ...]
|
||||
drive: str
|
||||
root: str
|
||||
anchor: str
|
||||
name: str
|
||||
suffix: str
|
||||
suffixes: List[str]
|
||||
stem: str
|
||||
if sys.version_info < (3, 5):
|
||||
def __init__(self, *pathsegments: str) -> None: ...
|
||||
elif sys.version_info < (3, 6):
|
||||
|
||||
62
third_party/2/redis/client.pyi
vendored
62
third_party/2/redis/client.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
SYM_EMPTY = ... # type: Any
|
||||
SYM_EMPTY: Any
|
||||
|
||||
def list_or_args(keys, args): ...
|
||||
def timestamp_to_datetime(response): ...
|
||||
@@ -10,7 +10,7 @@ def parse_debug_object(response): ...
|
||||
def parse_object(response, infotype): ...
|
||||
def parse_info(response): ...
|
||||
|
||||
SENTINEL_STATE_TYPES = ... # type: Any
|
||||
SENTINEL_STATE_TYPES: Any
|
||||
|
||||
def parse_sentinel_state(item): ...
|
||||
def parse_sentinel_master(response): ...
|
||||
@@ -32,11 +32,11 @@ def parse_zscan(response, **options): ...
|
||||
def parse_slowlog_get(response, **options): ...
|
||||
|
||||
class StrictRedis:
|
||||
RESPONSE_CALLBACKS = ... # type: Any
|
||||
RESPONSE_CALLBACKS: Any
|
||||
@classmethod
|
||||
def from_url(cls, url, db=..., **kwargs): ...
|
||||
connection_pool = ... # type: Any
|
||||
response_callbacks = ... # type: Any
|
||||
connection_pool: Any
|
||||
response_callbacks: Any
|
||||
def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=...,
|
||||
socket_keepalive=..., socket_keepalive_options=..., connection_pool=..., unix_socket_path=..., encoding=...,
|
||||
encoding_errors=..., charset=..., errors=..., decode_responses=..., retry_on_timeout=..., ssl=...,
|
||||
@@ -92,7 +92,7 @@ class StrictRedis:
|
||||
def __delitem__(self, name): ...
|
||||
def dump(self, name): ...
|
||||
def exists(self, name): ...
|
||||
__contains__ = ... # type: Any
|
||||
__contains__: Any
|
||||
def expire(self, name, time): ...
|
||||
def expireat(self, name, when): ...
|
||||
def get(self, name): ...
|
||||
@@ -214,26 +214,26 @@ class StrictRedis:
|
||||
def register_script(self, script): ...
|
||||
|
||||
class Redis(StrictRedis):
|
||||
RESPONSE_CALLBACKS = ... # type: Any
|
||||
RESPONSE_CALLBACKS: Any
|
||||
def pipeline(self, transaction=..., shard_hint=...): ...
|
||||
def setex(self, name, value, time): ...
|
||||
def lrem(self, name, value, num=...): ...
|
||||
def zadd(self, name, *args, **kwargs): ...
|
||||
|
||||
class PubSub:
|
||||
PUBLISH_MESSAGE_TYPES = ... # type: Any
|
||||
UNSUBSCRIBE_MESSAGE_TYPES = ... # type: Any
|
||||
connection_pool = ... # type: Any
|
||||
shard_hint = ... # type: Any
|
||||
ignore_subscribe_messages = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
PUBLISH_MESSAGE_TYPES: Any
|
||||
UNSUBSCRIBE_MESSAGE_TYPES: Any
|
||||
connection_pool: Any
|
||||
shard_hint: Any
|
||||
ignore_subscribe_messages: Any
|
||||
connection: Any
|
||||
encoding: Any
|
||||
encoding_errors: Any
|
||||
decode_responses: Any
|
||||
def __init__(self, connection_pool, shard_hint=..., ignore_subscribe_messages=...) -> None: ...
|
||||
def __del__(self): ...
|
||||
channels = ... # type: Any
|
||||
patterns = ... # type: Any
|
||||
channels: Any
|
||||
patterns: Any
|
||||
def reset(self): ...
|
||||
def close(self): ...
|
||||
def on_connect(self, connection): ...
|
||||
@@ -252,21 +252,21 @@ class PubSub:
|
||||
def run_in_thread(self, sleep_time=...): ...
|
||||
|
||||
class BasePipeline:
|
||||
UNWATCH_COMMANDS = ... # type: Any
|
||||
connection_pool = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
response_callbacks = ... # type: Any
|
||||
transaction = ... # type: Any
|
||||
shard_hint = ... # type: Any
|
||||
watching = ... # type: Any
|
||||
UNWATCH_COMMANDS: Any
|
||||
connection_pool: Any
|
||||
connection: Any
|
||||
response_callbacks: Any
|
||||
transaction: Any
|
||||
shard_hint: Any
|
||||
watching: Any
|
||||
def __init__(self, connection_pool, response_callbacks, transaction, shard_hint) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, traceback): ...
|
||||
def __del__(self): ...
|
||||
def __len__(self): ...
|
||||
command_stack = ... # type: Any
|
||||
scripts = ... # type: Any
|
||||
explicit_transaction = ... # type: Any
|
||||
command_stack: Any
|
||||
scripts: Any
|
||||
explicit_transaction: Any
|
||||
def reset(self): ...
|
||||
def multi(self): ...
|
||||
def execute_command(self, *args, **kwargs): ...
|
||||
@@ -285,8 +285,8 @@ class StrictPipeline(BasePipeline, StrictRedis): ...
|
||||
class Pipeline(BasePipeline, Redis): ...
|
||||
|
||||
class Script:
|
||||
registered_client = ... # type: Any
|
||||
script = ... # type: Any
|
||||
sha = ... # type: Any
|
||||
registered_client: Any
|
||||
script: Any
|
||||
sha: Any
|
||||
def __init__(self, registered_client, script) -> None: ...
|
||||
def __call__(self, keys=..., args=..., client=...): ...
|
||||
|
||||
114
third_party/2/redis/connection.pyi
vendored
114
third_party/2/redis/connection.pyi
vendored
@@ -1,29 +1,29 @@
|
||||
from typing import Any
|
||||
|
||||
ssl_available = ... # type: Any
|
||||
hiredis_version = ... # type: Any
|
||||
HIREDIS_SUPPORTS_CALLABLE_ERRORS = ... # type: Any
|
||||
HIREDIS_SUPPORTS_BYTE_BUFFER = ... # type: Any
|
||||
msg = ... # type: Any
|
||||
HIREDIS_USE_BYTE_BUFFER = ... # type: Any
|
||||
SYM_STAR = ... # type: Any
|
||||
SYM_DOLLAR = ... # type: Any
|
||||
SYM_CRLF = ... # type: Any
|
||||
SYM_EMPTY = ... # type: Any
|
||||
SERVER_CLOSED_CONNECTION_ERROR = ... # type: Any
|
||||
ssl_available: Any
|
||||
hiredis_version: Any
|
||||
HIREDIS_SUPPORTS_CALLABLE_ERRORS: Any
|
||||
HIREDIS_SUPPORTS_BYTE_BUFFER: Any
|
||||
msg: Any
|
||||
HIREDIS_USE_BYTE_BUFFER: Any
|
||||
SYM_STAR: Any
|
||||
SYM_DOLLAR: Any
|
||||
SYM_CRLF: Any
|
||||
SYM_EMPTY: Any
|
||||
SERVER_CLOSED_CONNECTION_ERROR: Any
|
||||
|
||||
class Token:
|
||||
value = ... # type: Any
|
||||
value: Any
|
||||
def __init__(self, value) -> None: ...
|
||||
|
||||
class BaseParser:
|
||||
EXCEPTION_CLASSES = ... # type: Any
|
||||
EXCEPTION_CLASSES: Any
|
||||
def parse_error(self, response): ...
|
||||
|
||||
class SocketBuffer:
|
||||
socket_read_size = ... # type: Any
|
||||
bytes_written = ... # type: Any
|
||||
bytes_read = ... # type: Any
|
||||
socket_read_size: Any
|
||||
bytes_written: Any
|
||||
bytes_read: Any
|
||||
def __init__(self, socket, socket_read_size) -> None: ...
|
||||
@property
|
||||
def length(self): ...
|
||||
@@ -33,8 +33,8 @@ class SocketBuffer:
|
||||
def close(self): ...
|
||||
|
||||
class PythonParser(BaseParser):
|
||||
encoding = ... # type: Any
|
||||
socket_read_size = ... # type: Any
|
||||
encoding: Any
|
||||
socket_read_size: Any
|
||||
def __init__(self, socket_read_size) -> None: ...
|
||||
def __del__(self): ...
|
||||
def on_connect(self, connection): ...
|
||||
@@ -43,7 +43,7 @@ class PythonParser(BaseParser):
|
||||
def read_response(self): ...
|
||||
|
||||
class HiredisParser(BaseParser):
|
||||
socket_read_size = ... # type: Any
|
||||
socket_read_size: Any
|
||||
def __init__(self, socket_read_size) -> None: ...
|
||||
def __del__(self): ...
|
||||
def on_connect(self, connection): ...
|
||||
@@ -51,23 +51,23 @@ class HiredisParser(BaseParser):
|
||||
def can_read(self): ...
|
||||
def read_response(self): ...
|
||||
|
||||
DefaultParser = ... # type: Any
|
||||
DefaultParser: Any
|
||||
|
||||
class Connection:
|
||||
description_format = ... # type: Any
|
||||
pid = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
db = ... # type: Any
|
||||
password = ... # type: Any
|
||||
socket_timeout = ... # type: Any
|
||||
socket_connect_timeout = ... # type: Any
|
||||
socket_keepalive = ... # type: Any
|
||||
socket_keepalive_options = ... # type: Any
|
||||
retry_on_timeout = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
description_format: Any
|
||||
pid: Any
|
||||
host: Any
|
||||
port: Any
|
||||
db: Any
|
||||
password: Any
|
||||
socket_timeout: Any
|
||||
socket_connect_timeout: Any
|
||||
socket_keepalive: Any
|
||||
socket_keepalive_options: Any
|
||||
retry_on_timeout: Any
|
||||
encoding: Any
|
||||
encoding_errors: Any
|
||||
decode_responses: Any
|
||||
def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=...,
|
||||
socket_keepalive=..., socket_keepalive_options=..., retry_on_timeout=..., encoding=..., encoding_errors=...,
|
||||
decode_responses=..., parser_class=..., socket_read_size=...) -> None: ...
|
||||
@@ -86,35 +86,35 @@ class Connection:
|
||||
def pack_commands(self, commands): ...
|
||||
|
||||
class SSLConnection(Connection):
|
||||
description_format = ... # type: Any
|
||||
keyfile = ... # type: Any
|
||||
certfile = ... # type: Any
|
||||
cert_reqs = ... # type: Any
|
||||
ca_certs = ... # type: Any
|
||||
description_format: Any
|
||||
keyfile: Any
|
||||
certfile: Any
|
||||
cert_reqs: Any
|
||||
ca_certs: Any
|
||||
def __init__(self, ssl_keyfile=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=..., **kwargs) -> None: ...
|
||||
|
||||
class UnixDomainSocketConnection(Connection):
|
||||
description_format = ... # type: Any
|
||||
pid = ... # type: Any
|
||||
path = ... # type: Any
|
||||
db = ... # type: Any
|
||||
password = ... # type: Any
|
||||
socket_timeout = ... # type: Any
|
||||
retry_on_timeout = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
description_format: Any
|
||||
pid: Any
|
||||
path: Any
|
||||
db: Any
|
||||
password: Any
|
||||
socket_timeout: Any
|
||||
retry_on_timeout: Any
|
||||
encoding: Any
|
||||
encoding_errors: Any
|
||||
decode_responses: Any
|
||||
def __init__(self, path=..., db=..., password=..., socket_timeout=..., encoding=..., encoding_errors=...,
|
||||
decode_responses=..., retry_on_timeout=..., parser_class=..., socket_read_size=...) -> None: ...
|
||||
|
||||
class ConnectionPool:
|
||||
@classmethod
|
||||
def from_url(cls, url, db=..., **kwargs): ...
|
||||
connection_class = ... # type: Any
|
||||
connection_kwargs = ... # type: Any
|
||||
max_connections = ... # type: Any
|
||||
connection_class: Any
|
||||
connection_kwargs: Any
|
||||
max_connections: Any
|
||||
def __init__(self, connection_class=..., max_connections=..., **connection_kwargs) -> None: ...
|
||||
pid = ... # type: Any
|
||||
pid: Any
|
||||
def reset(self): ...
|
||||
def get_connection(self, command_name, *keys, **options): ...
|
||||
def make_connection(self): ...
|
||||
@@ -122,11 +122,11 @@ class ConnectionPool:
|
||||
def disconnect(self): ...
|
||||
|
||||
class BlockingConnectionPool(ConnectionPool):
|
||||
queue_class = ... # type: Any
|
||||
timeout = ... # type: Any
|
||||
queue_class: Any
|
||||
timeout: Any
|
||||
def __init__(self, max_connections=..., timeout=..., connection_class=..., queue_class=..., **connection_kwargs) -> None: ...
|
||||
pid = ... # type: Any
|
||||
pool = ... # type: Any
|
||||
pid: Any
|
||||
pool: Any
|
||||
def reset(self): ...
|
||||
def make_connection(self): ...
|
||||
def get_connection(self, command_name, *keys, **options): ...
|
||||
|
||||
2
third_party/2/redis/utils.pyi
vendored
2
third_party/2/redis/utils.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
HIREDIS_AVAILABLE = ... # type: Any
|
||||
HIREDIS_AVAILABLE: Any
|
||||
|
||||
def from_url(url, db=..., **kwargs): ...
|
||||
def pipeline(redis_obj): ...
|
||||
|
||||
60
third_party/2/routes/mapper.pyi
vendored
60
third_party/2/routes/mapper.pyi
vendored
@@ -1,7 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
COLLECTION_ACTIONS = ... # type: Any
|
||||
MEMBER_ACTIONS = ... # type: Any
|
||||
COLLECTION_ACTIONS: Any
|
||||
MEMBER_ACTIONS: Any
|
||||
|
||||
def strip_slashes(name): ...
|
||||
|
||||
@@ -11,12 +11,12 @@ class SubMapperParent:
|
||||
collection_actions=..., member_actions=..., member_options=..., **kwargs): ...
|
||||
|
||||
class SubMapper(SubMapperParent):
|
||||
kwargs = ... # type: Any
|
||||
obj = ... # type: Any
|
||||
collection_name = ... # type: Any
|
||||
member = ... # type: Any
|
||||
resource_name = ... # type: Any
|
||||
formatted = ... # type: Any
|
||||
kwargs: Any
|
||||
obj: Any
|
||||
collection_name: Any
|
||||
member: Any
|
||||
resource_name: Any
|
||||
formatted: Any
|
||||
def __init__(self, obj, resource_name=..., collection_name=..., actions=..., formatted=..., **kwargs) -> None: ...
|
||||
def connect(self, *args, **kwargs): ...
|
||||
def link(self, rel=..., name=..., action=..., method=..., formatted=..., **kwargs): ...
|
||||
@@ -33,35 +33,35 @@ class SubMapper(SubMapperParent):
|
||||
def __exit__(self, type, value, tb): ...
|
||||
|
||||
class Mapper(SubMapperParent):
|
||||
matchlist = ... # type: Any
|
||||
maxkeys = ... # type: Any
|
||||
minkeys = ... # type: Any
|
||||
urlcache = ... # type: Any
|
||||
prefix = ... # type: Any
|
||||
req_data = ... # type: Any
|
||||
directory = ... # type: Any
|
||||
always_scan = ... # type: Any
|
||||
controller_scan = ... # type: Any
|
||||
debug = ... # type: Any
|
||||
append_slash = ... # type: Any
|
||||
sub_domains = ... # type: Any
|
||||
sub_domains_ignore = ... # type: Any
|
||||
domain_match = ... # type: Any
|
||||
explicit = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
decode_errors = ... # type: Any
|
||||
hardcode_names = ... # type: Any
|
||||
minimization = ... # type: Any
|
||||
create_regs_lock = ... # type: Any
|
||||
matchlist: Any
|
||||
maxkeys: Any
|
||||
minkeys: Any
|
||||
urlcache: Any
|
||||
prefix: Any
|
||||
req_data: Any
|
||||
directory: Any
|
||||
always_scan: Any
|
||||
controller_scan: Any
|
||||
debug: Any
|
||||
append_slash: Any
|
||||
sub_domains: Any
|
||||
sub_domains_ignore: Any
|
||||
domain_match: Any
|
||||
explicit: Any
|
||||
encoding: Any
|
||||
decode_errors: Any
|
||||
hardcode_names: Any
|
||||
minimization: Any
|
||||
create_regs_lock: Any
|
||||
def __init__(self, controller_scan=..., directory=..., always_scan=..., register=..., explicit=...) -> None: ...
|
||||
environ = ... # type: Any
|
||||
environ: Any
|
||||
def extend(self, routes, path_prefix=...): ...
|
||||
def make_route(self, *args, **kargs): ...
|
||||
def connect(self, *args, **kargs): ...
|
||||
def create_regs(self, *args, **kwargs): ...
|
||||
def match(self, url=..., environ=...): ...
|
||||
def routematch(self, url=..., environ=...): ...
|
||||
obj = ... # type: Any
|
||||
obj: Any
|
||||
def generate(self, *args, **kargs): ...
|
||||
def resource(self, member_name, collection_name, **kwargs): ...
|
||||
def redirect(self, match_path, destination_path, *args, **kwargs): ...
|
||||
|
||||
4
third_party/2/routes/util.pyi
vendored
4
third_party/2/routes/util.pyi
vendored
@@ -7,8 +7,8 @@ class GenerationException(RoutesException): ...
|
||||
def url_for(*args, **kargs): ...
|
||||
|
||||
class URLGenerator:
|
||||
mapper = ... # type: Any
|
||||
environ = ... # type: Any
|
||||
mapper: Any
|
||||
environ: Any
|
||||
def __init__(self, mapper, environ) -> None: ...
|
||||
def __call__(self, *args, **kargs): ...
|
||||
def current(self, *args, **kwargs): ...
|
||||
|
||||
8
third_party/2/scribe/scribe.pyi
vendored
8
third_party/2/scribe/scribe.pyi
vendored
@@ -19,8 +19,8 @@ class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
|
||||
def process_Log(self, seqid, iprot, oprot): ...
|
||||
|
||||
class Log_args:
|
||||
thrift_spec = ... # type: Any
|
||||
messages = ... # type: Any
|
||||
thrift_spec: Any
|
||||
messages: Any
|
||||
def __init__(self, messages=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
@@ -29,8 +29,8 @@ class Log_args:
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class Log_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
|
||||
12
third_party/2/scribe/ttypes.pyi
vendored
12
third_party/2/scribe/ttypes.pyi
vendored
@@ -1,15 +1,15 @@
|
||||
from typing import Any
|
||||
|
||||
fastbinary = ... # type: Any
|
||||
fastbinary: Any
|
||||
|
||||
class ResultCode:
|
||||
OK = ... # type: Any
|
||||
TRY_LATER = ... # type: Any
|
||||
OK: Any
|
||||
TRY_LATER: Any
|
||||
|
||||
class LogEntry:
|
||||
thrift_spec = ... # type: Any
|
||||
category = ... # type: Any
|
||||
message = ... # type: Any
|
||||
thrift_spec: Any
|
||||
category: Any
|
||||
message: Any
|
||||
def __init__(self, category=..., message=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
|
||||
2
third_party/2/six/__init__.pyi
vendored
2
third_party/2/six/__init__.pyi
vendored
@@ -33,7 +33,7 @@ class_types = (type, types.ClassType)
|
||||
text_type = unicode
|
||||
binary_type = str
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
MAXSIZE: int
|
||||
|
||||
# def add_move
|
||||
# def remove_move
|
||||
|
||||
12
third_party/2/tornado/concurrent.pyi
vendored
12
third_party/2/tornado/concurrent.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
from typing import Any
|
||||
|
||||
futures = ... # type: Any
|
||||
futures: Any
|
||||
|
||||
class ReturnValueIgnoredError(Exception): ...
|
||||
|
||||
class _TracebackLogger:
|
||||
exc_info = ... # type: Any
|
||||
formatted_tb = ... # type: Any
|
||||
exc_info: Any
|
||||
formatted_tb: Any
|
||||
def __init__(self, exc_info) -> None: ...
|
||||
def activate(self): ...
|
||||
def clear(self): ...
|
||||
@@ -27,8 +27,8 @@ class Future:
|
||||
def set_exc_info(self, exc_info): ...
|
||||
def __del__(self): ...
|
||||
|
||||
TracebackFuture = ... # type: Any
|
||||
FUTURES = ... # type: Any
|
||||
TracebackFuture: Any
|
||||
FUTURES: Any
|
||||
|
||||
def is_future(x): ...
|
||||
|
||||
@@ -36,7 +36,7 @@ class DummyExecutor:
|
||||
def submit(self, fn, *args, **kwargs): ...
|
||||
def shutdown(self, wait=...): ...
|
||||
|
||||
dummy_executor = ... # type: Any
|
||||
dummy_executor: Any
|
||||
|
||||
def run_on_executor(*args, **kwargs): ...
|
||||
def return_future(f): ...
|
||||
|
||||
60
third_party/2/tornado/gen.pyi
vendored
60
third_party/2/tornado/gen.pyi
vendored
@@ -1,7 +1,7 @@
|
||||
from typing import Any
|
||||
from collections import namedtuple
|
||||
|
||||
singledispatch = ... # type: Any
|
||||
singledispatch: Any
|
||||
|
||||
class KeyReuseError(Exception): ...
|
||||
class UnknownKeyError(Exception): ...
|
||||
@@ -14,11 +14,11 @@ def engine(func): ...
|
||||
def coroutine(func, replace_callback=...): ...
|
||||
|
||||
class Return(Exception):
|
||||
value = ... # type: Any
|
||||
value: Any
|
||||
def __init__(self, value=...) -> None: ...
|
||||
|
||||
class WaitIterator:
|
||||
current_index = ... # type: Any
|
||||
current_index: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def done(self): ...
|
||||
def next(self): ...
|
||||
@@ -29,25 +29,25 @@ class YieldPoint:
|
||||
def get_result(self): ...
|
||||
|
||||
class Callback(YieldPoint):
|
||||
key = ... # type: Any
|
||||
key: Any
|
||||
def __init__(self, key) -> None: ...
|
||||
runner = ... # type: Any
|
||||
runner: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
def get_result(self): ...
|
||||
|
||||
class Wait(YieldPoint):
|
||||
key = ... # type: Any
|
||||
key: Any
|
||||
def __init__(self, key) -> None: ...
|
||||
runner = ... # type: Any
|
||||
runner: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
def get_result(self): ...
|
||||
|
||||
class WaitAll(YieldPoint):
|
||||
keys = ... # type: Any
|
||||
keys: Any
|
||||
def __init__(self, keys) -> None: ...
|
||||
runner = ... # type: Any
|
||||
runner: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
def get_result(self): ...
|
||||
@@ -55,21 +55,21 @@ class WaitAll(YieldPoint):
|
||||
def Task(func, *args, **kwargs): ...
|
||||
|
||||
class YieldFuture(YieldPoint):
|
||||
future = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
future: Any
|
||||
io_loop: Any
|
||||
def __init__(self, future, io_loop=...) -> None: ...
|
||||
runner = ... # type: Any
|
||||
key = ... # type: Any
|
||||
result_fn = ... # type: Any
|
||||
runner: Any
|
||||
key: Any
|
||||
result_fn: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
def get_result(self): ...
|
||||
|
||||
class Multi(YieldPoint):
|
||||
keys = ... # type: Any
|
||||
children = ... # type: Any
|
||||
unfinished_children = ... # type: Any
|
||||
quiet_exceptions = ... # type: Any
|
||||
keys: Any
|
||||
children: Any
|
||||
unfinished_children: Any
|
||||
quiet_exceptions: Any
|
||||
def __init__(self, children, quiet_exceptions=...) -> None: ...
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
@@ -80,20 +80,20 @@ def maybe_future(x): ...
|
||||
def with_timeout(timeout, future, io_loop=..., quiet_exceptions=...): ...
|
||||
def sleep(duration): ...
|
||||
|
||||
moment = ... # type: Any
|
||||
moment: Any
|
||||
|
||||
class Runner:
|
||||
gen = ... # type: Any
|
||||
result_future = ... # type: Any
|
||||
future = ... # type: Any
|
||||
yield_point = ... # type: Any
|
||||
pending_callbacks = ... # type: Any
|
||||
results = ... # type: Any
|
||||
running = ... # type: Any
|
||||
finished = ... # type: Any
|
||||
had_exception = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
stack_context_deactivate = ... # type: Any
|
||||
gen: Any
|
||||
result_future: Any
|
||||
future: Any
|
||||
yield_point: Any
|
||||
pending_callbacks: Any
|
||||
results: Any
|
||||
running: Any
|
||||
finished: Any
|
||||
had_exception: Any
|
||||
io_loop: Any
|
||||
stack_context_deactivate: Any
|
||||
def __init__(self, gen, result_future, first_yielded) -> None: ...
|
||||
def register_callback(self, key): ...
|
||||
def is_ready(self, key): ...
|
||||
|
||||
90
third_party/2/tornado/httpclient.pyi
vendored
90
third_party/2/tornado/httpclient.pyi
vendored
@@ -13,8 +13,8 @@ class AsyncHTTPClient(Configurable):
|
||||
@classmethod
|
||||
def configurable_default(cls): ...
|
||||
def __new__(cls, io_loop=..., force_instance=..., **kwargs): ...
|
||||
io_loop = ... # type: Any
|
||||
defaults = ... # type: Any
|
||||
io_loop: Any
|
||||
defaults: Any
|
||||
def initialize(self, io_loop, defaults=...): ...
|
||||
def close(self): ...
|
||||
def fetch(self, request, callback=..., raise_error=..., **kwargs): ...
|
||||
@@ -23,35 +23,35 @@ class AsyncHTTPClient(Configurable):
|
||||
def configure(cls, impl, **kwargs): ...
|
||||
|
||||
class HTTPRequest:
|
||||
proxy_host = ... # type: Any
|
||||
proxy_port = ... # type: Any
|
||||
proxy_username = ... # type: Any
|
||||
proxy_password = ... # type: Any
|
||||
url = ... # type: Any
|
||||
method = ... # type: Any
|
||||
body_producer = ... # type: Any
|
||||
auth_username = ... # type: Any
|
||||
auth_password = ... # type: Any
|
||||
auth_mode = ... # type: Any
|
||||
connect_timeout = ... # type: Any
|
||||
request_timeout = ... # type: Any
|
||||
follow_redirects = ... # type: Any
|
||||
max_redirects = ... # type: Any
|
||||
user_agent = ... # type: Any
|
||||
decompress_response = ... # type: Any
|
||||
network_interface = ... # type: Any
|
||||
streaming_callback = ... # type: Any
|
||||
header_callback = ... # type: Any
|
||||
prepare_curl_callback = ... # type: Any
|
||||
allow_nonstandard_methods = ... # type: Any
|
||||
validate_cert = ... # type: Any
|
||||
ca_certs = ... # type: Any
|
||||
allow_ipv6 = ... # type: Any
|
||||
client_key = ... # type: Any
|
||||
client_cert = ... # type: Any
|
||||
ssl_options = ... # type: Any
|
||||
expect_100_continue = ... # type: Any
|
||||
start_time = ... # type: Any
|
||||
proxy_host: Any
|
||||
proxy_port: Any
|
||||
proxy_username: Any
|
||||
proxy_password: Any
|
||||
url: Any
|
||||
method: Any
|
||||
body_producer: Any
|
||||
auth_username: Any
|
||||
auth_password: Any
|
||||
auth_mode: Any
|
||||
connect_timeout: Any
|
||||
request_timeout: Any
|
||||
follow_redirects: Any
|
||||
max_redirects: Any
|
||||
user_agent: Any
|
||||
decompress_response: Any
|
||||
network_interface: Any
|
||||
streaming_callback: Any
|
||||
header_callback: Any
|
||||
prepare_curl_callback: Any
|
||||
allow_nonstandard_methods: Any
|
||||
validate_cert: Any
|
||||
ca_certs: Any
|
||||
allow_ipv6: Any
|
||||
client_key: Any
|
||||
client_cert: Any
|
||||
ssl_options: Any
|
||||
expect_100_continue: Any
|
||||
start_time: Any
|
||||
def __init__(self, url, method=..., headers=..., body=..., auth_username=..., auth_password=..., auth_mode=...,
|
||||
connect_timeout=..., request_timeout=..., if_modified_since=..., follow_redirects=..., max_redirects=...,
|
||||
user_agent=..., use_gzip=..., network_interface=..., streaming_callback=..., header_callback=...,
|
||||
@@ -68,28 +68,28 @@ class HTTPRequest:
|
||||
def body(self, value): ...
|
||||
|
||||
class HTTPResponse:
|
||||
request = ... # type: Any
|
||||
code = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
buffer = ... # type: Any
|
||||
effective_url = ... # type: Any
|
||||
error = ... # type: Any
|
||||
request_time = ... # type: Any
|
||||
time_info = ... # type: Any
|
||||
request: Any
|
||||
code: Any
|
||||
reason: Any
|
||||
headers: Any
|
||||
buffer: Any
|
||||
effective_url: Any
|
||||
error: Any
|
||||
request_time: Any
|
||||
time_info: Any
|
||||
def __init__(self, request, code, headers=..., buffer=..., effective_url=..., error=..., request_time=..., time_info=...,
|
||||
reason=...) -> None: ...
|
||||
body = ... # type: Any
|
||||
body: Any
|
||||
def rethrow(self): ...
|
||||
|
||||
class HTTPError(Exception):
|
||||
code = ... # type: Any
|
||||
response = ... # type: Any
|
||||
code: Any
|
||||
response: Any
|
||||
def __init__(self, code, message=..., response=...) -> None: ...
|
||||
|
||||
class _RequestProxy:
|
||||
request = ... # type: Any
|
||||
defaults = ... # type: Any
|
||||
request: Any
|
||||
defaults: Any
|
||||
def __init__(self, request, defaults) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
|
||||
|
||||
28
third_party/2/tornado/httpserver.pyi
vendored
28
third_party/2/tornado/httpserver.pyi
vendored
@@ -5,11 +5,11 @@ from tornado.util import Configurable
|
||||
|
||||
class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate):
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
request_callback = ... # type: Any
|
||||
no_keep_alive = ... # type: Any
|
||||
xheaders = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
conn_params = ... # type: Any
|
||||
request_callback: Any
|
||||
no_keep_alive: Any
|
||||
xheaders: Any
|
||||
protocol: Any
|
||||
conn_params: Any
|
||||
def initialize(self, request_callback, no_keep_alive=..., io_loop=..., xheaders=..., ssl_options=..., protocol=...,
|
||||
decompress_request=..., chunk_size=..., max_header_size=..., idle_connection_timeout=..., body_timeout=...,
|
||||
max_body_size=..., max_buffer_size=...): ...
|
||||
@@ -23,21 +23,21 @@ class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate)
|
||||
def on_close(self, server_conn): ...
|
||||
|
||||
class _HTTPRequestContext:
|
||||
address = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
address_family = ... # type: Any
|
||||
remote_ip = ... # type: Any
|
||||
address: Any
|
||||
protocol: Any
|
||||
address_family: Any
|
||||
remote_ip: Any
|
||||
def __init__(self, stream, address, protocol) -> None: ...
|
||||
|
||||
class _ServerRequestAdapter(httputil.HTTPMessageDelegate):
|
||||
server = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
request = ... # type: Any
|
||||
delegate = ... # type: Any
|
||||
server: Any
|
||||
connection: Any
|
||||
request: Any
|
||||
delegate: Any
|
||||
def __init__(self, server, server_conn, request_conn) -> None: ...
|
||||
def headers_received(self, start_line, headers): ...
|
||||
def data_received(self, chunk): ...
|
||||
def finish(self): ...
|
||||
def on_connection_close(self): ...
|
||||
|
||||
HTTPRequest = ... # type: Any
|
||||
HTTPRequest: Any
|
||||
|
||||
32
third_party/2/tornado/httputil.pyi
vendored
32
third_party/2/tornado/httputil.pyi
vendored
@@ -5,8 +5,8 @@ from collections import namedtuple
|
||||
class SSLError(Exception): ...
|
||||
|
||||
class _NormalizedHeaderCache(dict):
|
||||
size = ... # type: Any
|
||||
queue = ... # type: Any
|
||||
size: Any
|
||||
queue: Any
|
||||
def __init__(self, size) -> None: ...
|
||||
def __missing__(self, key): ...
|
||||
|
||||
@@ -25,23 +25,23 @@ class HTTPHeaders(dict):
|
||||
def get(self, name, default=...): ...
|
||||
def update(self, *args, **kwargs): ...
|
||||
def copy(self): ...
|
||||
__copy__ = ... # type: Any
|
||||
__copy__: Any
|
||||
def __deepcopy__(self, memo_dict): ...
|
||||
|
||||
class HTTPServerRequest:
|
||||
method = ... # type: Any
|
||||
uri = ... # type: Any
|
||||
version = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
remote_ip = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
host = ... # type: Any
|
||||
files = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
arguments = ... # type: Any
|
||||
query_arguments = ... # type: Any
|
||||
body_arguments = ... # type: Any
|
||||
method: Any
|
||||
uri: Any
|
||||
version: Any
|
||||
headers: Any
|
||||
body: Any
|
||||
remote_ip: Any
|
||||
protocol: Any
|
||||
host: Any
|
||||
files: Any
|
||||
connection: Any
|
||||
arguments: Any
|
||||
query_arguments: Any
|
||||
body_arguments: Any
|
||||
def __init__(self, method=..., uri=..., version=..., headers=..., body=..., host=..., files=..., connection=...,
|
||||
start_line=...) -> None: ...
|
||||
def supports_http_1_1(self): ...
|
||||
|
||||
24
third_party/2/tornado/ioloop.pyi
vendored
24
third_party/2/tornado/ioloop.pyi
vendored
@@ -1,15 +1,15 @@
|
||||
from typing import Any
|
||||
from tornado.util import Configurable
|
||||
|
||||
signal = ... # type: Any
|
||||
signal: Any
|
||||
|
||||
class TimeoutError(Exception): ...
|
||||
|
||||
class IOLoop(Configurable):
|
||||
NONE = ... # type: Any
|
||||
READ = ... # type: Any
|
||||
WRITE = ... # type: Any
|
||||
ERROR = ... # type: Any
|
||||
NONE: Any
|
||||
READ: Any
|
||||
WRITE: Any
|
||||
ERROR: Any
|
||||
@staticmethod
|
||||
def instance(): ...
|
||||
@staticmethod
|
||||
@@ -51,7 +51,7 @@ class IOLoop(Configurable):
|
||||
def close_fd(self, fd): ...
|
||||
|
||||
class PollIOLoop(IOLoop):
|
||||
time_func = ... # type: Any
|
||||
time_func: Any
|
||||
def initialize(self, impl, time_func=..., **kwargs): ...
|
||||
def close(self, all_fds=...): ...
|
||||
def add_handler(self, fd, handler, events): ...
|
||||
@@ -67,17 +67,17 @@ class PollIOLoop(IOLoop):
|
||||
def add_callback_from_signal(self, callback, *args, **kwargs): ...
|
||||
|
||||
class _Timeout:
|
||||
deadline = ... # type: Any
|
||||
callback = ... # type: Any
|
||||
tiebreaker = ... # type: Any
|
||||
deadline: Any
|
||||
callback: Any
|
||||
tiebreaker: Any
|
||||
def __init__(self, deadline, callback, io_loop) -> None: ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
|
||||
class PeriodicCallback:
|
||||
callback = ... # type: Any
|
||||
callback_time = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
callback: Any
|
||||
callback_time: Any
|
||||
io_loop: Any
|
||||
def __init__(self, callback, callback_time, io_loop=...) -> None: ...
|
||||
def start(self): ...
|
||||
def stop(self): ...
|
||||
|
||||
6
third_party/2/tornado/locks.pyi
vendored
6
third_party/2/tornado/locks.pyi
vendored
@@ -4,7 +4,7 @@ class _TimeoutGarbageCollector:
|
||||
def __init__(self): ...
|
||||
|
||||
class Condition(_TimeoutGarbageCollector):
|
||||
io_loop = ... # type: Any
|
||||
io_loop: Any
|
||||
def __init__(self): ...
|
||||
def wait(self, timeout: Optional[Any] = ...): ...
|
||||
def notify(self, n: int = ...): ...
|
||||
@@ -27,7 +27,7 @@ class Semaphore(_TimeoutGarbageCollector):
|
||||
def release(self): ...
|
||||
def acquire(self, timeout: Optional[Any] = ...): ...
|
||||
def __enter__(self): ...
|
||||
__exit__ = ... # type: Any
|
||||
__exit__: Any
|
||||
def __aenter__(self): ...
|
||||
def __aexit__(self, typ, value, tb): ...
|
||||
|
||||
@@ -40,6 +40,6 @@ class Lock:
|
||||
def acquire(self, timeout: Optional[Any] = ...): ...
|
||||
def release(self): ...
|
||||
def __enter__(self): ...
|
||||
__exit__ = ... # type: Any
|
||||
__exit__: Any
|
||||
def __aenter__(self): ...
|
||||
def __aexit__(self, typ, value, tb): ...
|
||||
|
||||
20
third_party/2/tornado/netutil.pyi
vendored
20
third_party/2/tornado/netutil.pyi
vendored
@@ -1,11 +1,11 @@
|
||||
from typing import Any
|
||||
from tornado.util import Configurable
|
||||
|
||||
ssl = ... # type: Any
|
||||
certifi = ... # type: Any
|
||||
xrange = ... # type: Any
|
||||
ssl_match_hostname = ... # type: Any
|
||||
SSLCertificateError = ... # type: Any
|
||||
ssl: Any
|
||||
certifi: Any
|
||||
xrange: Any
|
||||
ssl_match_hostname: Any
|
||||
SSLCertificateError: Any
|
||||
|
||||
def bind_sockets(port, address=..., family=..., backlog=..., flags=...): ...
|
||||
def bind_unix_socket(file, mode=..., backlog=...): ...
|
||||
@@ -21,9 +21,9 @@ class Resolver(Configurable):
|
||||
def close(self): ...
|
||||
|
||||
class ExecutorResolver(Resolver):
|
||||
io_loop = ... # type: Any
|
||||
executor = ... # type: Any
|
||||
close_executor = ... # type: Any
|
||||
io_loop: Any
|
||||
executor: Any
|
||||
close_executor: Any
|
||||
def initialize(self, io_loop=..., executor=..., close_executor=...): ...
|
||||
def close(self): ...
|
||||
def resolve(self, host, port, family=...): ...
|
||||
@@ -35,8 +35,8 @@ class ThreadedResolver(ExecutorResolver):
|
||||
def initialize(self, io_loop=..., num_threads=...): ...
|
||||
|
||||
class OverrideResolver(Resolver):
|
||||
resolver = ... # type: Any
|
||||
mapping = ... # type: Any
|
||||
resolver: Any
|
||||
mapping: Any
|
||||
def initialize(self, resolver, mapping): ...
|
||||
def close(self): ...
|
||||
def resolve(self, host, port, *args, **kwargs): ...
|
||||
|
||||
10
third_party/2/tornado/tcpserver.pyi
vendored
10
third_party/2/tornado/tcpserver.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
from typing import Any
|
||||
|
||||
ssl = ... # type: Any
|
||||
ssl: Any
|
||||
|
||||
class TCPServer:
|
||||
io_loop = ... # type: Any
|
||||
ssl_options = ... # type: Any
|
||||
max_buffer_size = ... # type: Any
|
||||
read_chunk_size = ... # type: Any
|
||||
io_loop: Any
|
||||
ssl_options: Any
|
||||
max_buffer_size: Any
|
||||
read_chunk_size: Any
|
||||
def __init__(self, io_loop=..., ssl_options=..., max_buffer_size=..., read_chunk_size=...) -> None: ...
|
||||
def listen(self, port, address=...): ...
|
||||
def add_sockets(self, sockets): ...
|
||||
|
||||
26
third_party/2/tornado/testing.pyi
vendored
26
third_party/2/tornado/testing.pyi
vendored
@@ -2,19 +2,19 @@ from typing import Any, Optional
|
||||
import unittest
|
||||
import logging
|
||||
|
||||
AsyncHTTPClient = ... # type: Any
|
||||
gen = ... # type: Any
|
||||
HTTPServer = ... # type: Any
|
||||
IOLoop = ... # type: Any
|
||||
netutil = ... # type: Any
|
||||
SimpleAsyncHTTPClient = ... # type: Any
|
||||
AsyncHTTPClient: Any
|
||||
gen: Any
|
||||
HTTPServer: Any
|
||||
IOLoop: Any
|
||||
netutil: Any
|
||||
SimpleAsyncHTTPClient: Any
|
||||
|
||||
def get_unused_port(): ...
|
||||
def bind_unused_port(): ...
|
||||
|
||||
class AsyncTestCase(unittest.TestCase):
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
io_loop = ... # type: Any
|
||||
io_loop: Any
|
||||
def setUp(self): ...
|
||||
def tearDown(self): ...
|
||||
def get_new_ioloop(self): ...
|
||||
@@ -23,8 +23,8 @@ class AsyncTestCase(unittest.TestCase):
|
||||
def wait(self, condition: Optional[Any] = ..., timeout: float = ...): ...
|
||||
|
||||
class AsyncHTTPTestCase(AsyncTestCase):
|
||||
http_client = ... # type: Any
|
||||
http_server = ... # type: Any
|
||||
http_client: Any
|
||||
http_server: Any
|
||||
def setUp(self): ...
|
||||
def get_http_client(self): ...
|
||||
def get_http_server(self): ...
|
||||
@@ -48,10 +48,10 @@ class LogTrapTestCase(unittest.TestCase):
|
||||
def run(self, result: Optional[Any] = ...): ...
|
||||
|
||||
class ExpectLog(logging.Filter):
|
||||
logger = ... # type: Any
|
||||
regex = ... # type: Any
|
||||
required = ... # type: Any
|
||||
matched = ... # type: Any
|
||||
logger: Any
|
||||
regex: Any
|
||||
required: Any
|
||||
matched: Any
|
||||
def __init__(self, logger, regex, required: bool = ...): ...
|
||||
def filter(self, record): ...
|
||||
def __enter__(self): ...
|
||||
|
||||
14
third_party/2/tornado/util.pyi
vendored
14
third_party/2/tornado/util.pyi
vendored
@@ -1,25 +1,25 @@
|
||||
from typing import Any
|
||||
|
||||
xrange = ... # type: Any
|
||||
xrange: Any
|
||||
|
||||
class ObjectDict(dict):
|
||||
def __getattr__(self, name): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
|
||||
class GzipDecompressor:
|
||||
decompressobj = ... # type: Any
|
||||
decompressobj: 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
|
||||
unicode_type: Any
|
||||
basestring_type: Any
|
||||
|
||||
def import_object(name): ...
|
||||
|
||||
bytes_type = ... # type: Any
|
||||
bytes_type: Any
|
||||
|
||||
def errno_from_exception(e): ...
|
||||
|
||||
@@ -36,8 +36,8 @@ class Configurable:
|
||||
def configured_class(cls): ...
|
||||
|
||||
class ArgReplacer:
|
||||
name = ... # type: Any
|
||||
arg_pos = ... # type: Any
|
||||
name: Any
|
||||
arg_pos: Any
|
||||
def __init__(self, func, name) -> None: ...
|
||||
def get_old_value(self, args, kwargs, default=...): ...
|
||||
def replace(self, new_value, args, kwargs): ...
|
||||
|
||||
104
third_party/2/tornado/web.pyi
vendored
104
third_party/2/tornado/web.pyi
vendored
@@ -1,18 +1,18 @@
|
||||
from typing import Any
|
||||
from tornado import httputil
|
||||
|
||||
MIN_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any
|
||||
MAX_SUPPORTED_SIGNED_VALUE_VERSION = ... # type: Any
|
||||
DEFAULT_SIGNED_VALUE_VERSION = ... # type: Any
|
||||
DEFAULT_SIGNED_VALUE_MIN_VERSION = ... # type: Any
|
||||
MIN_SUPPORTED_SIGNED_VALUE_VERSION: Any
|
||||
MAX_SUPPORTED_SIGNED_VALUE_VERSION: Any
|
||||
DEFAULT_SIGNED_VALUE_VERSION: Any
|
||||
DEFAULT_SIGNED_VALUE_MIN_VERSION: Any
|
||||
|
||||
class RequestHandler:
|
||||
SUPPORTED_METHODS = ... # type: Any
|
||||
application = ... # type: Any
|
||||
request = ... # type: Any
|
||||
path_args = ... # type: Any
|
||||
path_kwargs = ... # type: Any
|
||||
ui = ... # type: Any
|
||||
SUPPORTED_METHODS: Any
|
||||
application: Any
|
||||
request: Any
|
||||
path_args: Any
|
||||
path_kwargs: Any
|
||||
ui: Any
|
||||
def __init__(self, application, request, **kwargs) -> None: ...
|
||||
def initialize(self): ...
|
||||
@property
|
||||
@@ -93,13 +93,13 @@ def removeslash(method): ...
|
||||
def addslash(method): ...
|
||||
|
||||
class Application(httputil.HTTPServerConnectionDelegate):
|
||||
transforms = ... # type: Any
|
||||
handlers = ... # type: Any
|
||||
named_handlers = ... # type: Any
|
||||
default_host = ... # type: Any
|
||||
settings = ... # type: Any
|
||||
ui_modules = ... # type: Any
|
||||
ui_methods = ... # type: Any
|
||||
transforms: Any
|
||||
handlers: Any
|
||||
named_handlers: Any
|
||||
default_host: Any
|
||||
settings: Any
|
||||
ui_modules: Any
|
||||
ui_methods: Any
|
||||
def __init__(self, handlers=..., default_host=..., transforms=..., **settings) -> None: ...
|
||||
def listen(self, port, address=..., **kwargs): ...
|
||||
def add_handlers(self, host_pattern, host_handlers): ...
|
||||
@@ -110,35 +110,35 @@ class Application(httputil.HTTPServerConnectionDelegate):
|
||||
def log_request(self, handler): ...
|
||||
|
||||
class _RequestDispatcher(httputil.HTTPMessageDelegate):
|
||||
application = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
request = ... # type: Any
|
||||
chunks = ... # type: Any
|
||||
handler_class = ... # type: Any
|
||||
handler_kwargs = ... # type: Any
|
||||
path_args = ... # type: Any
|
||||
path_kwargs = ... # type: Any
|
||||
application: Any
|
||||
connection: Any
|
||||
request: Any
|
||||
chunks: Any
|
||||
handler_class: Any
|
||||
handler_kwargs: Any
|
||||
path_args: Any
|
||||
path_kwargs: Any
|
||||
def __init__(self, application, connection) -> None: ...
|
||||
def headers_received(self, start_line, headers): ...
|
||||
stream_request_body = ... # type: Any
|
||||
stream_request_body: Any
|
||||
def set_request(self, request): ...
|
||||
def data_received(self, data): ...
|
||||
def finish(self): ...
|
||||
def on_connection_close(self): ...
|
||||
handler = ... # type: Any
|
||||
handler: Any
|
||||
def execute(self): ...
|
||||
|
||||
class HTTPError(Exception):
|
||||
status_code = ... # type: Any
|
||||
log_message = ... # type: Any
|
||||
args = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
status_code: Any
|
||||
log_message: Any
|
||||
args: Any
|
||||
reason: Any
|
||||
def __init__(self, status_code, log_message=..., *args, **kwargs) -> None: ...
|
||||
|
||||
class Finish(Exception): ...
|
||||
|
||||
class MissingArgumentError(HTTPError):
|
||||
arg_name = ... # type: Any
|
||||
arg_name: Any
|
||||
def __init__(self, arg_name) -> None: ...
|
||||
|
||||
class ErrorHandler(RequestHandler):
|
||||
@@ -151,16 +151,16 @@ class RedirectHandler(RequestHandler):
|
||||
def get(self): ...
|
||||
|
||||
class StaticFileHandler(RequestHandler):
|
||||
CACHE_MAX_AGE = ... # type: Any
|
||||
root = ... # type: Any
|
||||
default_filename = ... # type: Any
|
||||
CACHE_MAX_AGE: Any
|
||||
root: Any
|
||||
default_filename: Any
|
||||
def initialize(self, path, default_filename=...): ...
|
||||
@classmethod
|
||||
def reset(cls): ...
|
||||
def head(self, path): ...
|
||||
path = ... # type: Any
|
||||
absolute_path = ... # type: Any
|
||||
modified = ... # type: Any
|
||||
path: Any
|
||||
absolute_path: Any
|
||||
modified: Any
|
||||
def get(self, path, include_body=...): ...
|
||||
def compute_etag(self): ...
|
||||
def set_headers(self): ...
|
||||
@@ -184,7 +184,7 @@ class StaticFileHandler(RequestHandler):
|
||||
def get_version(cls, settings, path): ...
|
||||
|
||||
class FallbackHandler(RequestHandler):
|
||||
fallback = ... # type: Any
|
||||
fallback: Any
|
||||
def initialize(self, fallback): ...
|
||||
def prepare(self): ...
|
||||
|
||||
@@ -194,8 +194,8 @@ class OutputTransform:
|
||||
def transform_chunk(self, chunk, finishing): ...
|
||||
|
||||
class GZipContentEncoding(OutputTransform):
|
||||
CONTENT_TYPES = ... # type: Any
|
||||
MIN_LENGTH = ... # type: Any
|
||||
CONTENT_TYPES: Any
|
||||
MIN_LENGTH: Any
|
||||
def __init__(self, request) -> None: ...
|
||||
def transform_first_chunk(self, status_code, headers, chunk, finishing): ...
|
||||
def transform_chunk(self, chunk, finishing): ...
|
||||
@@ -203,10 +203,10 @@ class GZipContentEncoding(OutputTransform):
|
||||
def authenticated(method): ...
|
||||
|
||||
class UIModule:
|
||||
handler = ... # type: Any
|
||||
request = ... # type: Any
|
||||
ui = ... # type: Any
|
||||
locale = ... # type: Any
|
||||
handler: Any
|
||||
request: Any
|
||||
ui: Any
|
||||
locale: Any
|
||||
def __init__(self, handler) -> None: ...
|
||||
@property
|
||||
def current_user(self): ...
|
||||
@@ -236,21 +236,21 @@ class TemplateModule(UIModule):
|
||||
def html_body(self): ...
|
||||
|
||||
class _UIModuleNamespace:
|
||||
handler = ... # type: Any
|
||||
ui_modules = ... # type: Any
|
||||
handler: Any
|
||||
ui_modules: Any
|
||||
def __init__(self, handler, ui_modules) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
class URLSpec:
|
||||
regex = ... # type: Any
|
||||
handler_class = ... # type: Any
|
||||
kwargs = ... # type: Any
|
||||
name = ... # type: Any
|
||||
regex: Any
|
||||
handler_class: Any
|
||||
kwargs: Any
|
||||
name: Any
|
||||
def __init__(self, pattern, handler, kwargs=..., name=...) -> None: ...
|
||||
def reverse(self, *args): ...
|
||||
|
||||
url = ... # type: Any
|
||||
url: Any
|
||||
|
||||
def create_signed_value(secret, name, value, version=..., clock=..., key_version=...): ...
|
||||
def decode_signed_value(secret, name, value, max_age_days=..., clock=..., min_version=...): ...
|
||||
|
||||
Reference in New Issue
Block a user