mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +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=...): ...
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
20
third_party/2and3/Crypto/Cipher/AES.pyi
vendored
@@ -1,19 +1,19 @@
|
||||
from typing import Any, Union, Text
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class AESCipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> AESCipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
20
third_party/2and3/Crypto/Cipher/ARC2.pyi
vendored
@@ -1,19 +1,19 @@
|
||||
from typing import Any, Union, Text
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class RC2Cipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> RC2Cipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
|
||||
10
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
10
third_party/2and3/Crypto/Cipher/ARC4.pyi
vendored
@@ -1,15 +1,15 @@
|
||||
from typing import Any, Union, Text
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class ARC4Cipher:
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
def encrypt(self, plaintext): ...
|
||||
def decrypt(self, ciphertext): ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> ARC4Cipher: ...
|
||||
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/Blowfish.pyi
vendored
20
third_party/2and3/Crypto/Cipher/Blowfish.pyi
vendored
@@ -1,19 +1,19 @@
|
||||
from typing import Any, Union, Text
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class BlowfishCipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> BlowfishCipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: Any
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: Any
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/CAST.pyi
vendored
20
third_party/2and3/Crypto/Cipher/CAST.pyi
vendored
@@ -1,19 +1,19 @@
|
||||
from typing import Any, Union, Text
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class CAST128Cipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> CAST128Cipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: Any
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: Any
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
20
third_party/2and3/Crypto/Cipher/DES.pyi
vendored
@@ -1,19 +1,19 @@
|
||||
from typing import Any, Union, Text
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class DESCipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> DESCipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/DES3.pyi
vendored
20
third_party/2and3/Crypto/Cipher/DES3.pyi
vendored
@@ -2,19 +2,19 @@ from typing import Any, Union, Text
|
||||
|
||||
from .blockalgo import BlockAlgo
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class DES3Cipher(BlockAlgo):
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> DES3Cipher: ...
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: Any
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
block_size: int
|
||||
key_size: Any
|
||||
|
||||
@@ -6,7 +6,7 @@ class PKCS115_Cipher:
|
||||
def __init__(self, key: _RSAobj) -> None: ...
|
||||
def can_encrypt(self) -> bool: ...
|
||||
def can_decrypt(self) -> bool: ...
|
||||
rf = ... # type: Any
|
||||
rf: Any
|
||||
def encrypt(self, message: Union[bytes, Text]) -> bytes: ...
|
||||
def decrypt(self, ct: bytes, sentinel: Any) -> bytes: ...
|
||||
|
||||
|
||||
10
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
10
third_party/2and3/Crypto/Cipher/XOR.pyi
vendored
@@ -1,10 +1,10 @@
|
||||
from typing import Any, Union, Text
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class XORCipher:
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ...
|
||||
def decrypt(self, ciphertext: bytes) -> bytes: ...
|
||||
@@ -12,5 +12,5 @@ class XORCipher:
|
||||
|
||||
def new(key: Union[bytes, Text], *args, **kwargs) -> XORCipher: ...
|
||||
|
||||
block_size = ... # type: int
|
||||
key_size = ... # type: int
|
||||
block_size: int
|
||||
key_size: int
|
||||
|
||||
20
third_party/2and3/Crypto/Cipher/blockalgo.pyi
vendored
20
third_party/2and3/Crypto/Cipher/blockalgo.pyi
vendored
@@ -1,17 +1,17 @@
|
||||
from typing import Any, Union, Text
|
||||
|
||||
MODE_ECB = ... # type: int
|
||||
MODE_CBC = ... # type: int
|
||||
MODE_CFB = ... # type: int
|
||||
MODE_PGP = ... # type: int
|
||||
MODE_OFB = ... # type: int
|
||||
MODE_CTR = ... # type: int
|
||||
MODE_OPENPGP = ... # type: int
|
||||
MODE_ECB: int
|
||||
MODE_CBC: int
|
||||
MODE_CFB: int
|
||||
MODE_PGP: int
|
||||
MODE_OFB: int
|
||||
MODE_CTR: int
|
||||
MODE_OPENPGP: int
|
||||
|
||||
class BlockAlgo:
|
||||
mode = ... # type: int
|
||||
block_size = ... # type: int
|
||||
IV = ... # type: Any
|
||||
mode: int
|
||||
block_size: int
|
||||
IV: Any
|
||||
def __init__(self, factory: Any, key: Union[bytes, Text], *args, **kwargs) -> None: ...
|
||||
def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ...
|
||||
def decrypt(self, ciphertext: bytes) -> bytes: ...
|
||||
|
||||
10
third_party/2and3/Crypto/Hash/HMAC.pyi
vendored
10
third_party/2and3/Crypto/Hash/HMAC.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
class HMAC:
|
||||
digest_size = ... # type: Any
|
||||
digestmod = ... # type: Any
|
||||
outer = ... # type: Any
|
||||
inner = ... # type: Any
|
||||
digest_size: Any
|
||||
digestmod: Any
|
||||
outer: Any
|
||||
inner: Any
|
||||
def __init__(self, key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...) -> None: ...
|
||||
def update(self, msg): ...
|
||||
def copy(self): ...
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/MD2.pyi
vendored
8
third_party/2and3/Crypto/Hash/MD2.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class MD2Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/MD4.pyi
vendored
8
third_party/2and3/Crypto/Hash/MD4.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class MD4Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/MD5.pyi
vendored
8
third_party/2and3/Crypto/Hash/MD5.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class MD5Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/RIPEMD.pyi
vendored
8
third_party/2and3/Crypto/Hash/RIPEMD.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class RIPEMD160Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/SHA.pyi
vendored
8
third_party/2and3/Crypto/Hash/SHA.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class SHA1Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/SHA224.pyi
vendored
8
third_party/2and3/Crypto/Hash/SHA224.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class SHA224Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/SHA256.pyi
vendored
8
third_party/2and3/Crypto/Hash/SHA256.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class SHA256Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/SHA384.pyi
vendored
8
third_party/2and3/Crypto/Hash/SHA384.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class SHA384Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Hash/SHA512.pyi
vendored
8
third_party/2and3/Crypto/Hash/SHA512.pyi
vendored
@@ -2,12 +2,12 @@ from typing import Any, Optional
|
||||
from Crypto.Hash.hashalgo import HashAlgo
|
||||
|
||||
class SHA512Hash(HashAlgo):
|
||||
oid = ... # type: Any
|
||||
digest_size = ... # type: int
|
||||
block_size = ... # type: int
|
||||
oid: Any
|
||||
digest_size: int
|
||||
block_size: int
|
||||
def __init__(self, data: Optional[Any] = ...) -> None: ...
|
||||
def new(self, data: Optional[Any] = ...): ...
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
4
third_party/2and3/Crypto/Hash/hashalgo.pyi
vendored
4
third_party/2and3/Crypto/Hash/hashalgo.pyi
vendored
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class HashAlgo:
|
||||
digest_size = ... # type: Any
|
||||
block_size = ... # type: Any
|
||||
digest_size: Any
|
||||
block_size: Any
|
||||
def __init__(self, hashFactory, data: Optional[Any] = ...) -> None: ...
|
||||
def update(self, data): ...
|
||||
def digest(self): ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
def isInt(x): ...
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class Chaff:
|
||||
def __init__(self, factor: float = ..., blocksper: int = ...) -> None: ...
|
||||
|
||||
2
third_party/2and3/Crypto/Protocol/KDF.pyi
vendored
2
third_party/2and3/Crypto/Protocol/KDF.pyi
vendored
@@ -1,7 +1,7 @@
|
||||
from typing import Any, Optional
|
||||
from Crypto.Hash import SHA as SHA1
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
def PBKDF1(password, salt, dkLen, count: int = ..., hashAlgo: Optional[Any] = ...): ...
|
||||
def PBKDF2(password, salt, dkLen: int = ..., count: int = ..., prf: Optional[Any] = ...): ...
|
||||
|
||||
14
third_party/2and3/Crypto/PublicKey/DSA.pyi
vendored
14
third_party/2and3/Crypto/PublicKey/DSA.pyi
vendored
@@ -2,9 +2,9 @@ from typing import Any, Optional
|
||||
from .pubkey import pubkey
|
||||
|
||||
class _DSAobj(pubkey):
|
||||
keydata = ... # type: Any
|
||||
implementation = ... # type: Any
|
||||
key = ... # type: Any
|
||||
keydata: Any
|
||||
implementation: Any
|
||||
key: Any
|
||||
def __init__(self, implementation, key) -> None: ...
|
||||
def __getattr__(self, attrname): ...
|
||||
def sign(self, M, K): ...
|
||||
@@ -17,11 +17,11 @@ class _DSAobj(pubkey):
|
||||
def publickey(self): ...
|
||||
|
||||
class DSAImplementation:
|
||||
error = ... # type: Any
|
||||
error: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ...): ...
|
||||
def construct(self, tup): ...
|
||||
|
||||
generate = ... # type: Any
|
||||
construct = ... # type: Any
|
||||
error = ... # type: Any
|
||||
generate: Any
|
||||
construct: Any
|
||||
error: Any
|
||||
|
||||
@@ -9,7 +9,7 @@ def generate(bits, randfunc, progress_func: Optional[Any] = ...): ...
|
||||
def construct(tup): ...
|
||||
|
||||
class ElGamalobj(pubkey):
|
||||
keydata = ... # type: Any
|
||||
keydata: Any
|
||||
def encrypt(self, plaintext, K): ...
|
||||
def decrypt(self, ciphertext): ...
|
||||
def sign(self, M, K): ...
|
||||
|
||||
16
third_party/2and3/Crypto/PublicKey/RSA.pyi
vendored
16
third_party/2and3/Crypto/PublicKey/RSA.pyi
vendored
@@ -2,9 +2,9 @@ from typing import Any, Optional, Union, Text
|
||||
from .pubkey import pubkey
|
||||
|
||||
class _RSAobj(pubkey):
|
||||
keydata = ... # type: Any
|
||||
implementation = ... # type: Any
|
||||
key = ... # type: Any
|
||||
keydata: Any
|
||||
implementation: Any
|
||||
key: Any
|
||||
def __init__(self, implementation, key, randfunc: Optional[Any] = ...) -> None: ...
|
||||
def __getattr__(self, attrname): ...
|
||||
def encrypt(self, plaintext, K): ...
|
||||
@@ -20,13 +20,13 @@ class _RSAobj(pubkey):
|
||||
def exportKey(self, format: str = ..., passphrase: Optional[Any] = ..., pkcs: int = ...): ...
|
||||
|
||||
class RSAImplementation:
|
||||
error = ... # type: Any
|
||||
error: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ..., e: int = ...): ...
|
||||
def construct(self, tup): ...
|
||||
def importKey(self, externKey: Any, passphrase: Union[None, bytes, Text] = ...) -> _RSAobj: ...
|
||||
|
||||
generate = ... # type: Any
|
||||
construct = ... # type: Any
|
||||
importKey = ... # type: Any
|
||||
error = ... # type: Any
|
||||
generate: Any
|
||||
construct: Any
|
||||
importKey: Any
|
||||
error: Any
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from Crypto.Util.number import * # noqa: F403
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class pubkey:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
from typing import Any
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class FortunaPool:
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
def __init__(self) -> None: ...
|
||||
def append(self, data): ...
|
||||
def digest(self): ...
|
||||
def hexdigest(self): ...
|
||||
length = ... # type: int
|
||||
length: int
|
||||
def reset(self): ...
|
||||
|
||||
def which_pools(r): ...
|
||||
|
||||
class FortunaAccumulator:
|
||||
min_pool_size = ... # type: int
|
||||
reseed_interval = ... # type: float
|
||||
reseed_count = ... # type: int
|
||||
generator = ... # type: Any
|
||||
last_reseed = ... # type: Any
|
||||
pools = ... # type: Any
|
||||
min_pool_size: int
|
||||
reseed_interval: float
|
||||
reseed_count: int
|
||||
generator: Any
|
||||
last_reseed: Any
|
||||
pools: Any
|
||||
def __init__(self) -> None: ...
|
||||
def random_data(self, bytes): ...
|
||||
def add_random_event(self, source_number, pool_number, data): ...
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
from typing import Any
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class AESGenerator:
|
||||
block_size = ... # type: Any
|
||||
key_size = ... # type: int
|
||||
max_blocks_per_request = ... # type: Any
|
||||
counter = ... # type: Any
|
||||
key = ... # type: Any
|
||||
block_size_shift = ... # type: Any
|
||||
blocks_per_key = ... # type: Any
|
||||
max_bytes_per_request = ... # type: Any
|
||||
block_size: Any
|
||||
key_size: int
|
||||
max_blocks_per_request: Any
|
||||
counter: Any
|
||||
key: Any
|
||||
block_size_shift: Any
|
||||
blocks_per_key: Any
|
||||
max_bytes_per_request: Any
|
||||
def __init__(self) -> None: ...
|
||||
def reseed(self, seed): ...
|
||||
def pseudo_random_data(self, bytes): ...
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class _SHAd256:
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
def __init__(self, internal_api_check, sha256_hash_obj) -> None: ...
|
||||
def copy(self): ...
|
||||
def digest(self): ...
|
||||
def hexdigest(self): ...
|
||||
def update(self, data): ...
|
||||
|
||||
digest_size = ... # type: Any
|
||||
digest_size: Any
|
||||
|
||||
def new(data: Optional[Any] = ...): ...
|
||||
|
||||
@@ -1 +1 @@
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from .rng_base import BaseRNG
|
||||
|
||||
class PythonOSURandomRNG(BaseRNG):
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@@ -2,5 +2,5 @@ from typing import Any, Optional
|
||||
from .rng_base import BaseRNG
|
||||
|
||||
class DevURandomRNG(BaseRNG):
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, devname: Optional[Any] = ...) -> None: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class BaseRNG:
|
||||
closed = ... # type: bool
|
||||
closed: bool
|
||||
def __init__(self) -> None: ...
|
||||
def __del__(self): ...
|
||||
def __enter__(self): ...
|
||||
|
||||
12
third_party/2and3/Crypto/Random/random.pyi
vendored
12
third_party/2and3/Crypto/Random/random.pyi
vendored
@@ -9,9 +9,9 @@ class StrongRandom:
|
||||
def shuffle(self, x): ...
|
||||
def sample(self, population, k): ...
|
||||
|
||||
getrandbits = ... # type: Any
|
||||
randrange = ... # type: Any
|
||||
randint = ... # type: Any
|
||||
choice = ... # type: Any
|
||||
shuffle = ... # type: Any
|
||||
sample = ... # type: Any
|
||||
getrandbits: Any
|
||||
randrange: Any
|
||||
randint: Any
|
||||
choice: Any
|
||||
shuffle: Any
|
||||
sample: Any
|
||||
|
||||
6
third_party/2and3/Crypto/Util/RFC1751.pyi
vendored
6
third_party/2and3/Crypto/Util/RFC1751.pyi
vendored
@@ -1,9 +1,9 @@
|
||||
from typing import Any
|
||||
|
||||
__revision__ = ... # type: str
|
||||
binary = ... # type: Any
|
||||
__revision__: str
|
||||
binary: Any
|
||||
|
||||
def key_to_english(key): ...
|
||||
def english_to_key(s): ...
|
||||
|
||||
wordlist = ... # type: Any
|
||||
wordlist: Any
|
||||
|
||||
14
third_party/2and3/Crypto/Util/asn1.pyi
vendored
14
third_party/2and3/Crypto/Util/asn1.pyi
vendored
@@ -1,18 +1,18 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class DerObject:
|
||||
typeTags = ... # type: Any
|
||||
typeTag = ... # type: Any
|
||||
payload = ... # type: Any
|
||||
typeTags: Any
|
||||
typeTag: Any
|
||||
payload: Any
|
||||
def __init__(self, ASN1Type: Optional[Any] = ..., payload: Any = ...) -> None: ...
|
||||
def isType(self, ASN1Type): ...
|
||||
def encode(self): ...
|
||||
def decode(self, derEle, noLeftOvers: int = ...): ...
|
||||
|
||||
class DerInteger(DerObject):
|
||||
value = ... # type: Any
|
||||
value: Any
|
||||
def __init__(self, value: int = ...) -> None: ...
|
||||
payload = ... # type: Any
|
||||
payload: Any
|
||||
def encode(self): ...
|
||||
def decode(self, derEle, noLeftOvers: int = ...): ...
|
||||
|
||||
@@ -28,12 +28,12 @@ class DerSequence(DerObject):
|
||||
def append(self, item): ...
|
||||
def hasInts(self): ...
|
||||
def hasOnlyInts(self): ...
|
||||
payload = ... # type: Any
|
||||
payload: Any
|
||||
def encode(self): ...
|
||||
def decode(self, derEle, noLeftOvers: int = ...): ...
|
||||
|
||||
class DerOctetString(DerObject):
|
||||
payload = ... # type: Any
|
||||
payload: Any
|
||||
def __init__(self, value: Any = ...) -> None: ...
|
||||
def decode(self, derEle, noLeftOvers: int = ...): ...
|
||||
|
||||
|
||||
6
third_party/2and3/Crypto/Util/number.pyi
vendored
6
third_party/2and3/Crypto/Util/number.pyi
vendored
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Optional
|
||||
from warnings import warn as _warn
|
||||
|
||||
__revision__ = ... # type: str
|
||||
bignum = ... # type: Any
|
||||
__revision__: str
|
||||
bignum: Any
|
||||
|
||||
def size(N): ...
|
||||
def getRandomNumber(N, randfunc: Optional[Any] = ...): ...
|
||||
@@ -19,4 +19,4 @@ def bytes_to_long(s): ...
|
||||
def long2str(n, blocksize: int = ...): ...
|
||||
def str2long(s): ...
|
||||
|
||||
sieve_base = ... # type: Any
|
||||
sieve_base: Any
|
||||
|
||||
8
third_party/2and3/Crypto/Util/randpool.pyi
vendored
8
third_party/2and3/Crypto/Util/randpool.pyi
vendored
@@ -1,11 +1,11 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
__revision__ = ... # type: str
|
||||
__revision__: str
|
||||
|
||||
class RandomPool:
|
||||
bytes = ... # type: Any
|
||||
bits = ... # type: Any
|
||||
entropy = ... # type: Any
|
||||
bytes: Any
|
||||
bits: Any
|
||||
entropy: Any
|
||||
def __init__(self, numbytes: int = ..., cipher: Optional[Any] = ..., hash: Optional[Any] = ..., file: Optional[Any] = ...) -> None: ...
|
||||
def get_bytes(self, N): ...
|
||||
def randomize(self, N: int = ...): ...
|
||||
|
||||
8
third_party/2and3/backports_abc.pyi
vendored
8
third_party/2and3/backports_abc.pyi
vendored
@@ -4,12 +4,12 @@ def mk_gen(): ...
|
||||
def mk_awaitable(): ...
|
||||
def mk_coroutine(): ...
|
||||
|
||||
Generator = ... # type: Any
|
||||
Awaitable = ... # type: Any
|
||||
Coroutine = ... # type: Any
|
||||
Generator: Any
|
||||
Awaitable: Any
|
||||
Coroutine: Any
|
||||
|
||||
def isawaitable(obj): ...
|
||||
|
||||
PATCHED = ... # type: Any
|
||||
PATCHED: Any
|
||||
|
||||
def patch(patch_inspect: bool = ...): ...
|
||||
|
||||
20
third_party/2and3/boto/__init__.pyi
vendored
20
third_party/2and3/boto/__init__.pyi
vendored
@@ -3,22 +3,22 @@ import logging
|
||||
|
||||
from .s3.connection import S3Connection
|
||||
|
||||
Version = ... # type: Any
|
||||
UserAgent = ... # type: Any
|
||||
config = ... # type: Any
|
||||
BUCKET_NAME_RE = ... # type: Any
|
||||
TOO_LONG_DNS_NAME_COMP = ... # type: Any
|
||||
GENERATION_RE = ... # type: Any
|
||||
VERSION_RE = ... # type: Any
|
||||
ENDPOINTS_PATH = ... # type: Any
|
||||
Version: Any
|
||||
UserAgent: Any
|
||||
config: Any
|
||||
BUCKET_NAME_RE: Any
|
||||
TOO_LONG_DNS_NAME_COMP: Any
|
||||
GENERATION_RE: Any
|
||||
VERSION_RE: Any
|
||||
ENDPOINTS_PATH: Any
|
||||
|
||||
def init_logging(): ...
|
||||
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record): ...
|
||||
|
||||
log = ... # type: Any
|
||||
perflog = ... # type: Any
|
||||
log: Any
|
||||
perflog: Any
|
||||
|
||||
def set_file_logger(name, filepath, level: Any = ..., format_string: Optional[Any] = ...): ...
|
||||
def set_stream_logger(name, level: Any = ..., format_string: Optional[Any] = ...): ...
|
||||
|
||||
40
third_party/2and3/boto/auth.pyi
vendored
40
third_party/2and3/boto/auth.pyi
vendored
@@ -1,39 +1,39 @@
|
||||
from typing import Any, Optional
|
||||
from boto.auth_handler import AuthHandler
|
||||
|
||||
SIGV4_DETECT = ... # type: Any
|
||||
SIGV4_DETECT: Any
|
||||
|
||||
class HmacKeys:
|
||||
host = ... # type: Any
|
||||
host: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def update_provider(self, provider): ...
|
||||
def algorithm(self): ...
|
||||
def sign_string(self, string_to_sign): ...
|
||||
|
||||
class AnonAuthHandler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class HmacAuthV1Handler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def update_provider(self, provider): ...
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class HmacAuthV2Handler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def update_provider(self, provider): ...
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class HmacAuthV3Handler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def headers_to_sign(self, http_request): ...
|
||||
def canonical_headers(self, headers_to_sign): ...
|
||||
@@ -41,9 +41,9 @@ class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):
|
||||
def add_auth(self, req, **kwargs): ...
|
||||
|
||||
class HmacAuthV4Handler(AuthHandler, HmacKeys):
|
||||
capability = ... # type: Any
|
||||
service_name = ... # type: Any
|
||||
region_name = ... # type: Any
|
||||
capability: Any
|
||||
service_name: Any
|
||||
region_name: Any
|
||||
def __init__(self, host, config, provider, service_name: Optional[Any] = ..., region_name: Optional[Any] = ...) -> None: ...
|
||||
def headers_to_sign(self, http_request): ...
|
||||
def host_header(self, host, http_request): ...
|
||||
@@ -64,8 +64,8 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
|
||||
def add_auth(self, req, **kwargs): ...
|
||||
|
||||
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
|
||||
capability = ... # type: Any
|
||||
region_name = ... # type: Any
|
||||
capability: Any
|
||||
region_name: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def clean_region_name(self, region_name): ...
|
||||
def canonical_uri(self, http_request): ...
|
||||
@@ -80,27 +80,27 @@ class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
|
||||
def presign(self, req, expires, iso_date: Optional[Any] = ...): ...
|
||||
|
||||
class STSAnonHandler(AuthHandler):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class QuerySignatureHelper(HmacKeys):
|
||||
def add_auth(self, http_request, **kwargs): ...
|
||||
|
||||
class QuerySignatureV0AuthHandler(QuerySignatureHelper, AuthHandler):
|
||||
SignatureVersion = ... # type: int
|
||||
capability = ... # type: Any
|
||||
SignatureVersion: int
|
||||
capability: Any
|
||||
|
||||
class QuerySignatureV1AuthHandler(QuerySignatureHelper, AuthHandler):
|
||||
SignatureVersion = ... # type: int
|
||||
capability = ... # type: Any
|
||||
SignatureVersion: int
|
||||
capability: Any
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
|
||||
class QuerySignatureV2AuthHandler(QuerySignatureHelper, AuthHandler):
|
||||
SignatureVersion = ... # type: int
|
||||
capability = ... # type: Any
|
||||
SignatureVersion: int
|
||||
capability: Any
|
||||
|
||||
class POSTPathQSV2AuthHandler(QuerySignatureV2AuthHandler, AuthHandler):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def add_auth(self, req, **kwargs): ...
|
||||
|
||||
def get_auth_handler(host, config, provider, requested_capability: Optional[Any] = ...): ...
|
||||
|
||||
2
third_party/2and3/boto/auth_handler.pyi
vendored
2
third_party/2and3/boto/auth_handler.pyi
vendored
@@ -4,6 +4,6 @@ from boto.plugin import Plugin
|
||||
class NotReadyToAuthenticate(Exception): ...
|
||||
|
||||
class AuthHandler(Plugin):
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
def __init__(self, host, config, provider) -> None: ...
|
||||
def add_auth(self, http_request): ...
|
||||
|
||||
8
third_party/2and3/boto/compat.pyi
vendored
8
third_party/2and3/boto/compat.pyi
vendored
@@ -5,13 +5,13 @@ from base64 import encodestring as encodebytes
|
||||
|
||||
from six.moves import http_client
|
||||
|
||||
expanduser = ... # type: Any
|
||||
expanduser: Any
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
StandardError = Exception
|
||||
else:
|
||||
StandardError = __builtins__.StandardError
|
||||
|
||||
long_type = ... # type: Any
|
||||
unquote_str = ... # type: Any
|
||||
parse_qs_safe = ... # type: Any
|
||||
long_type: Any
|
||||
unquote_str: Any
|
||||
parse_qs_safe: Any
|
||||
|
||||
98
third_party/2and3/boto/connection.pyi
vendored
98
third_party/2and3/boto/connection.pyi
vendored
@@ -1,13 +1,13 @@
|
||||
from typing import Any, Dict, Optional, Text
|
||||
from six.moves import http_client
|
||||
|
||||
HAVE_HTTPS_CONNECTION = ... # type: bool
|
||||
ON_APP_ENGINE = ... # type: Any
|
||||
PORTS_BY_SECURITY = ... # type: Any
|
||||
DEFAULT_CA_CERTS_FILE = ... # type: Any
|
||||
HAVE_HTTPS_CONNECTION: bool
|
||||
ON_APP_ENGINE: Any
|
||||
PORTS_BY_SECURITY: Any
|
||||
DEFAULT_CA_CERTS_FILE: Any
|
||||
|
||||
class HostConnectionPool:
|
||||
queue = ... # type: Any
|
||||
queue: Any
|
||||
def __init__(self) -> None: ...
|
||||
def size(self): ...
|
||||
def put(self, conn): ...
|
||||
@@ -15,11 +15,11 @@ class HostConnectionPool:
|
||||
def clean(self): ...
|
||||
|
||||
class ConnectionPool:
|
||||
CLEAN_INTERVAL = ... # type: float
|
||||
STALE_DURATION = ... # type: float
|
||||
host_to_pool = ... # type: Any
|
||||
last_clean_time = ... # type: float
|
||||
mutex = ... # type: Any
|
||||
CLEAN_INTERVAL: float
|
||||
STALE_DURATION: float
|
||||
host_to_pool: Any
|
||||
last_clean_time: float
|
||||
mutex: Any
|
||||
def __init__(self) -> None: ...
|
||||
def size(self): ...
|
||||
def get_http_connection(self, host, port, is_secure): ...
|
||||
@@ -27,15 +27,15 @@ class ConnectionPool:
|
||||
def clean(self): ...
|
||||
|
||||
class HTTPRequest:
|
||||
method = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
path = ... # type: Any
|
||||
auth_path = ... # type: Any
|
||||
params = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
method: Any
|
||||
protocol: Any
|
||||
host: Any
|
||||
port: Any
|
||||
path: Any
|
||||
auth_path: Any
|
||||
params: Any
|
||||
headers: Any
|
||||
body: Any
|
||||
def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ...
|
||||
def authorize(self, connection, **kwargs): ...
|
||||
|
||||
@@ -44,49 +44,49 @@ class HTTPResponse(http_client.HTTPResponse):
|
||||
def read(self, amt: Optional[Any] = ...): ...
|
||||
|
||||
class AWSAuthConnection:
|
||||
suppress_consec_slashes = ... # type: Any
|
||||
num_retries = ... # type: int
|
||||
is_secure = ... # type: Any
|
||||
https_validate_certificates = ... # type: Any
|
||||
ca_certificates_file = ... # type: Any
|
||||
port = ... # type: Any
|
||||
http_exceptions = ... # type: Any
|
||||
http_unretryable_exceptions = ... # type: Any
|
||||
socket_exception_values = ... # type: Any
|
||||
https_connection_factory = ... # type: Any
|
||||
protocol = ... # type: str
|
||||
host = ... # type: Any
|
||||
path = ... # type: Any
|
||||
debug = ... # type: Any
|
||||
host_header = ... # type: Any
|
||||
http_connection_kwargs = ... # type: Any
|
||||
provider = ... # type: Any
|
||||
auth_service_name = ... # type: Any
|
||||
request_hook = ... # type: Any
|
||||
suppress_consec_slashes: Any
|
||||
num_retries: int
|
||||
is_secure: Any
|
||||
https_validate_certificates: Any
|
||||
ca_certificates_file: Any
|
||||
port: Any
|
||||
http_exceptions: Any
|
||||
http_unretryable_exceptions: Any
|
||||
socket_exception_values: Any
|
||||
https_connection_factory: Any
|
||||
protocol: str
|
||||
host: Any
|
||||
path: Any
|
||||
debug: Any
|
||||
host_header: Any
|
||||
http_connection_kwargs: Any
|
||||
provider: Any
|
||||
auth_service_name: Any
|
||||
request_hook: Any
|
||||
def __init__(self, host, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., provider: str = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ...) -> None: ...
|
||||
auth_region_name = ... # type: Any
|
||||
auth_region_name: Any
|
||||
@property
|
||||
def connection(self): ...
|
||||
@property
|
||||
def aws_access_key_id(self): ...
|
||||
@property
|
||||
def gs_access_key_id(self) -> Any: ...
|
||||
access_key = ... # type: Any
|
||||
access_key: Any
|
||||
@property
|
||||
def aws_secret_access_key(self): ...
|
||||
@property
|
||||
def gs_secret_access_key(self): ...
|
||||
secret_key = ... # type: Any
|
||||
secret_key: Any
|
||||
@property
|
||||
def profile_name(self): ...
|
||||
def get_path(self, path: str = ...): ...
|
||||
def server_name(self, port: Optional[Any] = ...): ...
|
||||
proxy = ... # type: Any
|
||||
proxy_port = ... # type: Any
|
||||
proxy_user = ... # type: Any
|
||||
proxy_pass = ... # type: Any
|
||||
no_proxy = ... # type: Any
|
||||
use_proxy = ... # type: Any
|
||||
proxy: Any
|
||||
proxy_port: Any
|
||||
proxy_user: Any
|
||||
proxy_pass: Any
|
||||
no_proxy: Any
|
||||
use_proxy: Any
|
||||
def handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass): ...
|
||||
def get_http_connection(self, host, port, is_secure): ...
|
||||
def skip_proxy(self, host): ...
|
||||
@@ -103,8 +103,8 @@ class AWSAuthConnection:
|
||||
def close(self): ...
|
||||
|
||||
class AWSQueryConnection(AWSAuthConnection):
|
||||
APIVersion = ... # type: str
|
||||
ResponseError = ... # type: Any
|
||||
APIVersion: str
|
||||
ResponseError: Any
|
||||
def __init__(self, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., host: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., security_token: Optional[Any] = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ..., provider: str = ...) -> None: ...
|
||||
def get_utf8_value(self, value): ...
|
||||
def make_request(self, action, params: Optional[Any] = ..., path: str = ..., verb: str = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237
|
||||
|
||||
2
third_party/2and3/boto/ec2/__init__.pyi
vendored
2
third_party/2and3/boto/ec2/__init__.pyi
vendored
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
RegionData = ... # type: Any
|
||||
RegionData: Any
|
||||
|
||||
def regions(**kw_params): ...
|
||||
def connect_to_region(region_name, **kw_params): ...
|
||||
|
||||
10
third_party/2and3/boto/elb/__init__.pyi
vendored
10
third_party/2and3/boto/elb/__init__.pyi
vendored
@@ -1,16 +1,16 @@
|
||||
from typing import Any
|
||||
from boto.connection import AWSQueryConnection
|
||||
|
||||
RegionData = ... # type: Any
|
||||
RegionData: Any
|
||||
|
||||
def regions(): ...
|
||||
def connect_to_region(region_name, **kw_params): ...
|
||||
|
||||
class ELBConnection(AWSQueryConnection):
|
||||
APIVersion = ... # type: Any
|
||||
DefaultRegionName = ... # type: Any
|
||||
DefaultRegionEndpoint = ... # type: Any
|
||||
region = ... # type: Any
|
||||
APIVersion: Any
|
||||
DefaultRegionName: Any
|
||||
DefaultRegionEndpoint: Any
|
||||
region: Any
|
||||
def __init__(self, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., region=..., path=..., security_token=..., validate_certs=..., profile_name=...) -> None: ...
|
||||
def build_list_params(self, params, items, label): ...
|
||||
def get_all_load_balancers(self, load_balancer_names=..., marker=...): ...
|
||||
|
||||
88
third_party/2and3/boto/exception.pyi
vendored
88
third_party/2and3/boto/exception.pyi
vendored
@@ -2,7 +2,7 @@ from typing import Any, Optional
|
||||
from boto.compat import StandardError
|
||||
|
||||
class BotoClientError(StandardError):
|
||||
reason = ... # type: Any
|
||||
reason: Any
|
||||
def __init__(self, reason, *args) -> None: ...
|
||||
|
||||
class SDBPersistenceError(StandardError): ...
|
||||
@@ -11,13 +11,13 @@ class S3PermissionsError(StoragePermissionsError): ...
|
||||
class GSPermissionsError(StoragePermissionsError): ...
|
||||
|
||||
class BotoServerError(StandardError):
|
||||
status = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
body = ... # type: Any
|
||||
request_id = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
message = ... # type: str
|
||||
box_usage = ... # type: Any
|
||||
status: Any
|
||||
reason: Any
|
||||
body: Any
|
||||
request_id: Any
|
||||
error_code: Any
|
||||
message: str
|
||||
box_usage: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ..., *args) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
@@ -25,17 +25,17 @@ class BotoServerError(StandardError):
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class ConsoleOutput:
|
||||
parent = ... # type: Any
|
||||
instance_id = ... # type: Any
|
||||
timestamp = ... # type: Any
|
||||
comment = ... # type: Any
|
||||
output = ... # type: Any
|
||||
parent: Any
|
||||
instance_id: Any
|
||||
timestamp: Any
|
||||
comment: Any
|
||||
output: Any
|
||||
def __init__(self, parent: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class StorageCreateError(BotoServerError):
|
||||
bucket = ... # type: Any
|
||||
bucket: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
@@ -46,18 +46,18 @@ class S3CopyError(StorageCopyError): ...
|
||||
class GSCopyError(StorageCopyError): ...
|
||||
|
||||
class SQSError(BotoServerError):
|
||||
detail = ... # type: Any
|
||||
type = ... # type: Any
|
||||
detail: Any
|
||||
type: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class SQSDecodeError(BotoClientError):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, reason, message) -> None: ...
|
||||
|
||||
class StorageResponseError(BotoServerError):
|
||||
resource = ... # type: Any
|
||||
resource: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
@@ -66,18 +66,18 @@ class S3ResponseError(StorageResponseError): ...
|
||||
class GSResponseError(StorageResponseError): ...
|
||||
|
||||
class EC2ResponseError(BotoServerError):
|
||||
errors = ... # type: Any
|
||||
errors: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
request_id = ... # type: Any
|
||||
request_id: Any
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class JSONResponseError(BotoServerError):
|
||||
status = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
body = ... # type: Any
|
||||
error_message = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
status: Any
|
||||
reason: Any
|
||||
body: Any
|
||||
error_message: Any
|
||||
error_code: Any
|
||||
def __init__(self, status, reason, body: Optional[Any] = ..., *args) -> None: ...
|
||||
|
||||
class DynamoDBResponseError(JSONResponseError): ...
|
||||
@@ -85,9 +85,9 @@ class SWFResponseError(JSONResponseError): ...
|
||||
class EmrResponseError(BotoServerError): ...
|
||||
|
||||
class _EC2Error:
|
||||
connection = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
error_message = ... # type: Any
|
||||
connection: Any
|
||||
error_code: Any
|
||||
error_message: Any
|
||||
def __init__(self, connection: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
@@ -99,48 +99,48 @@ class S3DataError(StorageDataError): ...
|
||||
class GSDataError(StorageDataError): ...
|
||||
|
||||
class InvalidUriError(Exception):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
class InvalidAclError(Exception):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
class InvalidCorsError(Exception):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
class NoAuthHandlerFound(Exception): ...
|
||||
|
||||
class InvalidLifecycleConfigError(Exception):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
class ResumableTransferDisposition:
|
||||
START_OVER = ... # type: str
|
||||
WAIT_BEFORE_RETRY = ... # type: str
|
||||
ABORT_CUR_PROCESS = ... # type: str
|
||||
ABORT = ... # type: str
|
||||
START_OVER: str
|
||||
WAIT_BEFORE_RETRY: str
|
||||
ABORT_CUR_PROCESS: str
|
||||
ABORT: str
|
||||
|
||||
class ResumableUploadException(Exception):
|
||||
message = ... # type: Any
|
||||
disposition = ... # type: Any
|
||||
message: Any
|
||||
disposition: Any
|
||||
def __init__(self, message, disposition) -> None: ...
|
||||
|
||||
class ResumableDownloadException(Exception):
|
||||
message = ... # type: Any
|
||||
disposition = ... # type: Any
|
||||
message: Any
|
||||
disposition: Any
|
||||
def __init__(self, message, disposition) -> None: ...
|
||||
|
||||
class TooManyRecordsException(Exception):
|
||||
message = ... # type: Any
|
||||
message: Any
|
||||
def __init__(self, message) -> None: ...
|
||||
|
||||
class PleaseRetryException(Exception):
|
||||
message = ... # type: Any
|
||||
response = ... # type: Any
|
||||
message: Any
|
||||
response: Any
|
||||
def __init__(self, message, response: Optional[Any] = ...) -> None: ...
|
||||
|
||||
class InvalidInstanceMetadataError(Exception):
|
||||
MSG = ... # type: str
|
||||
MSG: str
|
||||
def __init__(self, msg) -> None: ...
|
||||
|
||||
14
third_party/2and3/boto/kms/layer1.pyi
vendored
14
third_party/2and3/boto/kms/layer1.pyi
vendored
@@ -2,13 +2,13 @@ from typing import Any, Dict, List, Mapping, Optional, Type
|
||||
from boto.connection import AWSQueryConnection
|
||||
|
||||
class KMSConnection(AWSQueryConnection):
|
||||
APIVersion = ... # type: str
|
||||
DefaultRegionName = ... # type: str
|
||||
DefaultRegionEndpoint = ... # type: str
|
||||
ServiceName = ... # type: str
|
||||
TargetPrefix = ... # type: str
|
||||
ResponseError = ... # type: Type[Exception]
|
||||
region = ... # type: Any
|
||||
APIVersion: str
|
||||
DefaultRegionName: str
|
||||
DefaultRegionEndpoint: str
|
||||
ServiceName: str
|
||||
TargetPrefix: str
|
||||
ResponseError: Type[Exception]
|
||||
region: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def create_alias(self, alias_name: str, target_key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def create_grant(self, key_id: str, grantee_principal: str, retiring_principal: Optional[str] = ..., operations: Optional[List[str]] = ..., constraints: Optional[Dict[str, Dict[str, str]]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
|
||||
2
third_party/2and3/boto/plugin.pyi
vendored
2
third_party/2and3/boto/plugin.pyi
vendored
@@ -1,7 +1,7 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class Plugin:
|
||||
capability = ... # type: Any
|
||||
capability: Any
|
||||
@classmethod
|
||||
def is_capable(cls, requested_capability): ...
|
||||
|
||||
|
||||
8
third_party/2and3/boto/regioninfo.pyi
vendored
8
third_party/2and3/boto/regioninfo.pyi
vendored
@@ -6,10 +6,10 @@ def load_regions(): ...
|
||||
def get_regions(service_name, region_cls: Optional[Any] = ..., connection_cls: Optional[Any] = ...): ...
|
||||
|
||||
class RegionInfo:
|
||||
connection = ... # type: Any
|
||||
name = ... # type: Any
|
||||
endpoint = ... # type: Any
|
||||
connection_cls = ... # type: Any
|
||||
connection: Any
|
||||
name: Any
|
||||
endpoint: Any
|
||||
connection_cls: Any
|
||||
def __init__(self, connection: Optional[Any] = ..., name: Optional[Any] = ..., endpoint: Optional[Any] = ..., connection_cls: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
28
third_party/2and3/boto/s3/acl.pyi
vendored
28
third_party/2and3/boto/s3/acl.pyi
vendored
@@ -2,21 +2,21 @@ from .connection import S3Connection
|
||||
from .user import User
|
||||
from typing import Any, Dict, Optional, List, Text, Union
|
||||
|
||||
CannedACLStrings = ... # type: List[str]
|
||||
CannedACLStrings: List[str]
|
||||
|
||||
class Policy:
|
||||
parent = ... # type: Any
|
||||
namespace = ... # type: Any
|
||||
acl = ... # type: ACL
|
||||
parent: Any
|
||||
namespace: Any
|
||||
acl: ACL
|
||||
def __init__(self, parent: Optional[Any] = ...) -> None: ...
|
||||
owner = ... # type: User
|
||||
owner: User
|
||||
def startElement(self, name: Text, attrs: Dict[str, Any], connection: S3Connection) -> Union[None, User, ACL]: ...
|
||||
def endElement(self, name: Text, value: Any, connection: S3Connection) -> None: ...
|
||||
def to_xml(self) -> str: ...
|
||||
|
||||
class ACL:
|
||||
policy = ... # type: Policy
|
||||
grants = ... # type: List[Grant]
|
||||
policy: Policy
|
||||
grants: List[Grant]
|
||||
def __init__(self, policy: Optional[Policy] = ...) -> None: ...
|
||||
def add_grant(self, grant: Grant) -> None: ...
|
||||
def add_email_grant(self, permission: Text, email_address: Text) -> None: ...
|
||||
@@ -26,13 +26,13 @@ class ACL:
|
||||
def to_xml(self) -> str: ...
|
||||
|
||||
class Grant:
|
||||
NameSpace = ... # type: Text
|
||||
permission = ... # type: Text
|
||||
id = ... # type: Text
|
||||
display_name = ... # type: Text
|
||||
uri = ... # type: Text
|
||||
email_address = ... # type: Text
|
||||
type = ... # type: Text
|
||||
NameSpace: Text
|
||||
permission: Text
|
||||
id: Text
|
||||
display_name: Text
|
||||
uri: Text
|
||||
email_address: Text
|
||||
type: Text
|
||||
def __init__(self, permission: Optional[Text] = ..., type: Optional[Text] = ..., id: Optional[Text] = ..., display_name: Optional[Text] = ..., uri: Optional[Text] = ..., email_address: Optional[Text] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name: Text, value: Any, connection: S3Connection) -> None: ...
|
||||
|
||||
22
third_party/2and3/boto/s3/bucket.pyi
vendored
22
third_party/2and3/boto/s3/bucket.pyi
vendored
@@ -5,26 +5,26 @@ from .key import Key
|
||||
from typing import Any, Dict, Optional, Text, Type, List
|
||||
|
||||
class S3WebsiteEndpointTranslate:
|
||||
trans_region = ... # type: Dict[str, str]
|
||||
trans_region: Dict[str, str]
|
||||
@classmethod
|
||||
def translate_region(self, reg: Text) -> str: ...
|
||||
|
||||
S3Permissions = ... # type: List[str]
|
||||
S3Permissions: List[str]
|
||||
|
||||
class Bucket:
|
||||
LoggingGroup = ... # type: str
|
||||
BucketPaymentBody = ... # type: str
|
||||
VersioningBody = ... # type: str
|
||||
VersionRE = ... # type: str
|
||||
MFADeleteRE = ... # type: str
|
||||
name = ... # type: Text
|
||||
connection = ... # type: S3Connection
|
||||
key_class = ... # type: Type[Key]
|
||||
LoggingGroup: str
|
||||
BucketPaymentBody: str
|
||||
VersioningBody: str
|
||||
VersionRE: str
|
||||
MFADeleteRE: str
|
||||
name: Text
|
||||
connection: S3Connection
|
||||
key_class: Type[Key]
|
||||
def __init__(self, connection: Optional[S3Connection] = ..., name: Optional[Text] = ..., key_class: Type[Key] = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __contains__(self, key_name) -> bool: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
creation_date = ... # type: Any
|
||||
creation_date: Any
|
||||
def endElement(self, name, value, connection): ...
|
||||
def set_key_class(self, key_class): ...
|
||||
def lookup(self, key_name, headers: Optional[Dict[Text, Text]] = ...): ...
|
||||
|
||||
@@ -6,35 +6,35 @@ from typing import Any, Iterable, Iterator, Optional
|
||||
def bucket_lister(bucket, prefix: str = ..., delimiter: str = ..., marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
|
||||
|
||||
class BucketListResultSet(Iterable[Key]):
|
||||
bucket = ... # type: Any
|
||||
prefix = ... # type: Any
|
||||
delimiter = ... # type: Any
|
||||
marker = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
encoding_type = ... # type: Any
|
||||
bucket: Any
|
||||
prefix: Any
|
||||
delimiter: Any
|
||||
marker: Any
|
||||
headers: Any
|
||||
encoding_type: Any
|
||||
def __init__(self, bucket: Optional[Any] = ..., prefix: str = ..., delimiter: str = ..., marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[Key]: ...
|
||||
|
||||
def versioned_bucket_lister(bucket, prefix: str = ..., delimiter: str = ..., key_marker: str = ..., version_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
|
||||
|
||||
class VersionedBucketListResultSet:
|
||||
bucket = ... # type: Any
|
||||
prefix = ... # type: Any
|
||||
delimiter = ... # type: Any
|
||||
key_marker = ... # type: Any
|
||||
version_id_marker = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
encoding_type = ... # type: Any
|
||||
bucket: Any
|
||||
prefix: Any
|
||||
delimiter: Any
|
||||
key_marker: Any
|
||||
version_id_marker: Any
|
||||
headers: Any
|
||||
encoding_type: Any
|
||||
def __init__(self, bucket: Optional[Any] = ..., prefix: str = ..., delimiter: str = ..., key_marker: str = ..., version_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[Key]: ...
|
||||
|
||||
def multipart_upload_lister(bucket, key_marker: str = ..., upload_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
|
||||
|
||||
class MultiPartUploadListResultSet:
|
||||
bucket = ... # type: Any
|
||||
key_marker = ... # type: Any
|
||||
upload_id_marker = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
encoding_type = ... # type: Any
|
||||
bucket: Any
|
||||
key_marker: Any
|
||||
upload_id_marker: Any
|
||||
headers: Any
|
||||
encoding_type: Any
|
||||
def __init__(self, bucket: Optional[Any] = ..., key_marker: str = ..., upload_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
|
||||
6
third_party/2and3/boto/s3/bucketlogging.pyi
vendored
6
third_party/2and3/boto/s3/bucketlogging.pyi
vendored
@@ -1,9 +1,9 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class BucketLogging:
|
||||
target = ... # type: Any
|
||||
prefix = ... # type: Any
|
||||
grants = ... # type: Any
|
||||
target: Any
|
||||
prefix: Any
|
||||
grants: Any
|
||||
def __init__(self, target: Optional[Any] = ..., prefix: Optional[Any] = ..., grants: Optional[Any] = ...) -> None: ...
|
||||
def add_grant(self, grant): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
|
||||
32
third_party/2and3/boto/s3/connection.pyi
vendored
32
third_party/2and3/boto/s3/connection.pyi
vendored
@@ -28,27 +28,27 @@ class ProtocolIndependentOrdinaryCallingFormat(OrdinaryCallingFormat):
|
||||
def build_url_base(self, connection, protocol, server, bucket, key: str = ...): ...
|
||||
|
||||
class Location:
|
||||
DEFAULT = ... # type: str
|
||||
EU = ... # type: str
|
||||
EUCentral1 = ... # type: str
|
||||
USWest = ... # type: str
|
||||
USWest2 = ... # type: str
|
||||
SAEast = ... # type: str
|
||||
APNortheast = ... # type: str
|
||||
APSoutheast = ... # type: str
|
||||
APSoutheast2 = ... # type: str
|
||||
CNNorth1 = ... # type: str
|
||||
DEFAULT: str
|
||||
EU: str
|
||||
EUCentral1: str
|
||||
USWest: str
|
||||
USWest2: str
|
||||
SAEast: str
|
||||
APNortheast: str
|
||||
APSoutheast: str
|
||||
APSoutheast2: str
|
||||
CNNorth1: str
|
||||
|
||||
class NoHostProvided: ...
|
||||
class HostRequiredError(BotoClientError): ...
|
||||
|
||||
class S3Connection(AWSAuthConnection):
|
||||
DefaultHost = ... # type: Any
|
||||
DefaultCallingFormat = ... # type: Any
|
||||
QueryString = ... # type: str
|
||||
calling_format = ... # type: Any
|
||||
bucket_class = ... # type: Type[Bucket]
|
||||
anon = ... # type: Any
|
||||
DefaultHost: Any
|
||||
DefaultCallingFormat: Any
|
||||
QueryString: str
|
||||
calling_format: Any
|
||||
bucket_class: Type[Bucket]
|
||||
anon: Any
|
||||
def __init__(self, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., host: Any = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., calling_format: Any = ..., path: str = ..., provider: str = ..., bucket_class: Type[Bucket] = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., anon: bool = ..., validate_certs: Optional[Any] = ..., profile_name: Optional[Any] = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __contains__(self, bucket_name): ...
|
||||
|
||||
12
third_party/2and3/boto/s3/cors.pyi
vendored
12
third_party/2and3/boto/s3/cors.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class CORSRule:
|
||||
allowed_method = ... # type: Any
|
||||
allowed_origin = ... # type: Any
|
||||
id = ... # type: Any
|
||||
allowed_header = ... # type: Any
|
||||
max_age_seconds = ... # type: Any
|
||||
expose_header = ... # type: Any
|
||||
allowed_method: Any
|
||||
allowed_origin: Any
|
||||
id: Any
|
||||
allowed_header: Any
|
||||
max_age_seconds: Any
|
||||
expose_header: Any
|
||||
def __init__(self, allowed_method: Optional[Any] = ..., allowed_origin: Optional[Any] = ..., id: Optional[Any] = ..., allowed_header: Optional[Any] = ..., max_age_seconds: Optional[Any] = ..., expose_header: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
12
third_party/2and3/boto/s3/deletemarker.pyi
vendored
12
third_party/2and3/boto/s3/deletemarker.pyi
vendored
@@ -1,12 +1,12 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class DeleteMarker:
|
||||
bucket = ... # type: Any
|
||||
name = ... # type: Any
|
||||
version_id = ... # type: Any
|
||||
is_latest = ... # type: bool
|
||||
last_modified = ... # type: Any
|
||||
owner = ... # type: Any
|
||||
bucket: Any
|
||||
name: Any
|
||||
version_id: Any
|
||||
is_latest: bool
|
||||
last_modified: Any
|
||||
owner: Any
|
||||
def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
18
third_party/2and3/boto/s3/keyfile.pyi
vendored
18
third_party/2and3/boto/s3/keyfile.pyi
vendored
@@ -1,15 +1,15 @@
|
||||
from typing import Any
|
||||
|
||||
class KeyFile:
|
||||
key = ... # type: Any
|
||||
location = ... # type: int
|
||||
closed = ... # type: bool
|
||||
softspace = ... # type: int
|
||||
mode = ... # type: str
|
||||
encoding = ... # type: str
|
||||
errors = ... # type: str
|
||||
newlines = ... # type: str
|
||||
name = ... # type: Any
|
||||
key: Any
|
||||
location: int
|
||||
closed: bool
|
||||
softspace: int
|
||||
mode: str
|
||||
encoding: str
|
||||
errors: str
|
||||
newlines: str
|
||||
name: Any
|
||||
def __init__(self, key) -> None: ...
|
||||
def tell(self): ...
|
||||
def seek(self, pos, whence: Any = ...): ...
|
||||
|
||||
30
third_party/2and3/boto/s3/lifecycle.pyi
vendored
30
third_party/2and3/boto/s3/lifecycle.pyi
vendored
@@ -1,37 +1,37 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class Rule:
|
||||
id = ... # type: Any
|
||||
prefix = ... # type: Any
|
||||
status = ... # type: Any
|
||||
expiration = ... # type: Any
|
||||
transition = ... # type: Any
|
||||
id: Any
|
||||
prefix: Any
|
||||
status: Any
|
||||
expiration: Any
|
||||
transition: Any
|
||||
def __init__(self, id: Optional[Any] = ..., prefix: Optional[Any] = ..., status: Optional[Any] = ..., expiration: Optional[Any] = ..., transition: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class Expiration:
|
||||
days = ... # type: Any
|
||||
date = ... # type: Any
|
||||
days: Any
|
||||
date: Any
|
||||
def __init__(self, days: Optional[Any] = ..., date: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class Transition:
|
||||
days = ... # type: Any
|
||||
date = ... # type: Any
|
||||
storage_class = ... # type: Any
|
||||
days: Any
|
||||
date: Any
|
||||
storage_class: Any
|
||||
def __init__(self, days: Optional[Any] = ..., date: Optional[Any] = ..., storage_class: Optional[Any] = ...) -> None: ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class Transitions(list):
|
||||
transition_properties = ... # type: int
|
||||
current_transition_property = ... # type: int
|
||||
temp_days = ... # type: Any
|
||||
temp_date = ... # type: Any
|
||||
temp_storage_class = ... # type: Any
|
||||
transition_properties: int
|
||||
current_transition_property: int
|
||||
temp_days: Any
|
||||
temp_date: Any
|
||||
temp_storage_class: Any
|
||||
def __init__(self) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
22
third_party/2and3/boto/s3/multidelete.pyi
vendored
22
third_party/2and3/boto/s3/multidelete.pyi
vendored
@@ -1,27 +1,27 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class Deleted:
|
||||
key = ... # type: Any
|
||||
version_id = ... # type: Any
|
||||
delete_marker = ... # type: Any
|
||||
delete_marker_version_id = ... # type: Any
|
||||
key: Any
|
||||
version_id: Any
|
||||
delete_marker: Any
|
||||
delete_marker_version_id: Any
|
||||
def __init__(self, key: Optional[Any] = ..., version_id: Optional[Any] = ..., delete_marker: bool = ..., delete_marker_version_id: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class Error:
|
||||
key = ... # type: Any
|
||||
version_id = ... # type: Any
|
||||
code = ... # type: Any
|
||||
message = ... # type: Any
|
||||
key: Any
|
||||
version_id: Any
|
||||
code: Any
|
||||
message: Any
|
||||
def __init__(self, key: Optional[Any] = ..., version_id: Optional[Any] = ..., code: Optional[Any] = ..., message: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class MultiDeleteResult:
|
||||
bucket = ... # type: Any
|
||||
deleted = ... # type: Any
|
||||
errors = ... # type: Any
|
||||
bucket: Any
|
||||
deleted: Any
|
||||
errors: Any
|
||||
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
48
third_party/2and3/boto/s3/multipart.pyi
vendored
48
third_party/2and3/boto/s3/multipart.pyi
vendored
@@ -1,23 +1,23 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class CompleteMultiPartUpload:
|
||||
bucket = ... # type: Any
|
||||
location = ... # type: Any
|
||||
bucket_name = ... # type: Any
|
||||
key_name = ... # type: Any
|
||||
etag = ... # type: Any
|
||||
version_id = ... # type: Any
|
||||
encrypted = ... # type: Any
|
||||
bucket: Any
|
||||
location: Any
|
||||
bucket_name: Any
|
||||
key_name: Any
|
||||
etag: Any
|
||||
version_id: Any
|
||||
encrypted: Any
|
||||
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class Part:
|
||||
bucket = ... # type: Any
|
||||
part_number = ... # type: Any
|
||||
last_modified = ... # type: Any
|
||||
etag = ... # type: Any
|
||||
size = ... # type: Any
|
||||
bucket: Any
|
||||
part_number: Any
|
||||
last_modified: Any
|
||||
etag: Any
|
||||
size: Any
|
||||
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
@@ -25,18 +25,18 @@ class Part:
|
||||
def part_lister(mpupload, part_number_marker: Optional[Any] = ...): ...
|
||||
|
||||
class MultiPartUpload:
|
||||
bucket = ... # type: Any
|
||||
bucket_name = ... # type: Any
|
||||
key_name = ... # type: Any
|
||||
id = ... # type: Any
|
||||
initiator = ... # type: Any
|
||||
owner = ... # type: Any
|
||||
storage_class = ... # type: Any
|
||||
initiated = ... # type: Any
|
||||
part_number_marker = ... # type: Any
|
||||
next_part_number_marker = ... # type: Any
|
||||
max_parts = ... # type: Any
|
||||
is_truncated = ... # type: bool
|
||||
bucket: Any
|
||||
bucket_name: Any
|
||||
key_name: Any
|
||||
id: Any
|
||||
initiator: Any
|
||||
owner: Any
|
||||
storage_class: Any
|
||||
initiated: Any
|
||||
part_number_marker: Any
|
||||
next_part_number_marker: Any
|
||||
max_parts: Any
|
||||
is_truncated: bool
|
||||
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def to_xml(self): ...
|
||||
|
||||
4
third_party/2and3/boto/s3/prefix.pyi
vendored
4
third_party/2and3/boto/s3/prefix.pyi
vendored
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class Prefix:
|
||||
bucket = ... # type: Any
|
||||
name = ... # type: Any
|
||||
bucket: Any
|
||||
name: Any
|
||||
def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
4
third_party/2and3/boto/s3/tagging.pyi
vendored
4
third_party/2and3/boto/s3/tagging.pyi
vendored
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class Tag:
|
||||
key = ... # type: Any
|
||||
value = ... # type: Any
|
||||
key: Any
|
||||
value: Any
|
||||
def __init__(self, key: Optional[Any] = ..., value: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
6
third_party/2and3/boto/s3/user.pyi
vendored
6
third_party/2and3/boto/s3/user.pyi
vendored
@@ -1,9 +1,9 @@
|
||||
from typing import Any, Optional
|
||||
|
||||
class User:
|
||||
type = ... # type: Any
|
||||
id = ... # type: Any
|
||||
display_name = ... # type: Any
|
||||
type: Any
|
||||
id: Any
|
||||
display_name: Any
|
||||
def __init__(self, parent: Optional[Any] = ..., id: str = ..., display_name: str = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
40
third_party/2and3/boto/s3/website.pyi
vendored
40
third_party/2and3/boto/s3/website.pyi
vendored
@@ -3,27 +3,27 @@ from typing import Any, Optional
|
||||
def tag(key, value): ...
|
||||
|
||||
class WebsiteConfiguration:
|
||||
suffix = ... # type: Any
|
||||
error_key = ... # type: Any
|
||||
redirect_all_requests_to = ... # type: Any
|
||||
routing_rules = ... # type: Any
|
||||
suffix: Any
|
||||
error_key: Any
|
||||
redirect_all_requests_to: Any
|
||||
routing_rules: Any
|
||||
def __init__(self, suffix: Optional[Any] = ..., error_key: Optional[Any] = ..., redirect_all_requests_to: Optional[Any] = ..., routing_rules: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class _XMLKeyValue:
|
||||
translator = ... # type: Any
|
||||
container = ... # type: Any
|
||||
translator: Any
|
||||
container: Any
|
||||
def __init__(self, translator, container: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class RedirectLocation(_XMLKeyValue):
|
||||
TRANSLATOR = ... # type: Any
|
||||
hostname = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
TRANSLATOR: Any
|
||||
hostname: Any
|
||||
protocol: Any
|
||||
def __init__(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ...) -> None: ...
|
||||
def to_xml(self): ...
|
||||
|
||||
@@ -34,8 +34,8 @@ class RoutingRules(list):
|
||||
def to_xml(self): ...
|
||||
|
||||
class RoutingRule:
|
||||
condition = ... # type: Any
|
||||
redirect = ... # type: Any
|
||||
condition: Any
|
||||
redirect: Any
|
||||
def __init__(self, condition: Optional[Any] = ..., redirect: Optional[Any] = ...) -> None: ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
@@ -45,18 +45,18 @@ class RoutingRule:
|
||||
def then_redirect(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ..., replace_key: Optional[Any] = ..., replace_key_prefix: Optional[Any] = ..., http_redirect_code: Optional[Any] = ...): ...
|
||||
|
||||
class Condition(_XMLKeyValue):
|
||||
TRANSLATOR = ... # type: Any
|
||||
key_prefix = ... # type: Any
|
||||
http_error_code = ... # type: Any
|
||||
TRANSLATOR: Any
|
||||
key_prefix: Any
|
||||
http_error_code: Any
|
||||
def __init__(self, key_prefix: Optional[Any] = ..., http_error_code: Optional[Any] = ...) -> None: ...
|
||||
def to_xml(self): ...
|
||||
|
||||
class Redirect(_XMLKeyValue):
|
||||
TRANSLATOR = ... # type: Any
|
||||
hostname = ... # type: Any
|
||||
protocol = ... # type: Any
|
||||
replace_key = ... # type: Any
|
||||
replace_key_prefix = ... # type: Any
|
||||
http_redirect_code = ... # type: Any
|
||||
TRANSLATOR: Any
|
||||
hostname: Any
|
||||
protocol: Any
|
||||
replace_key: Any
|
||||
replace_key_prefix: Any
|
||||
http_redirect_code: Any
|
||||
def __init__(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ..., replace_key: Optional[Any] = ..., replace_key_prefix: Optional[Any] = ..., http_redirect_code: Optional[Any] = ...) -> None: ...
|
||||
def to_xml(self): ...
|
||||
|
||||
48
third_party/2and3/boto/utils.pyi
vendored
48
third_party/2and3/boto/utils.pyi
vendored
@@ -49,8 +49,8 @@ _Provider = Any # TODO replace this with boto.provider.Provider once stubs exis
|
||||
_LockType = Any # TODO replace this with _thread.LockType once stubs exist
|
||||
|
||||
|
||||
JSONDecodeError = ... # type: Type[ValueError]
|
||||
qsa_of_interest = ... # type: List[str]
|
||||
JSONDecodeError: Type[ValueError]
|
||||
qsa_of_interest: List[str]
|
||||
|
||||
|
||||
def unquote_v(nv: str) -> Union[str, Tuple[str, str]]: ...
|
||||
@@ -106,10 +106,10 @@ def get_instance_userdata(
|
||||
num_retries: int = ...,
|
||||
) -> Mapping[str, str]: ...
|
||||
|
||||
ISO8601 = ... # type: str
|
||||
ISO8601_MS = ... # type: str
|
||||
RFC1123 = ... # type: str
|
||||
LOCALE_LOCK = ... # type: _LockType
|
||||
ISO8601: str
|
||||
ISO8601_MS: str
|
||||
RFC1123: str
|
||||
LOCALE_LOCK: _LockType
|
||||
|
||||
def setlocale(name: Union[str, Tuple[str, str]]) -> ContextManager[str]: ...
|
||||
def get_ts(ts: Optional[time.struct_time] = ...) -> str: ...
|
||||
@@ -124,11 +124,11 @@ def fetch_file(
|
||||
) -> Optional[IO[str]]: ...
|
||||
|
||||
class ShellCommand:
|
||||
exit_code = ... # type: int
|
||||
command = ... # type: subprocess._CMD
|
||||
log_fp = ... # type: _StringIO
|
||||
wait = ... # type: bool
|
||||
fail_fast = ... # type: bool
|
||||
exit_code: int
|
||||
command: subprocess._CMD
|
||||
log_fp: _StringIO
|
||||
wait: bool
|
||||
fail_fast: bool
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -138,21 +138,21 @@ class ShellCommand:
|
||||
cwd: Optional[subprocess._TXT] = ...,
|
||||
) -> None: ...
|
||||
|
||||
process = ... # type: subprocess.Popen
|
||||
process: subprocess.Popen
|
||||
|
||||
def run(self, cwd: Optional[subprocess._CMD] = ...) -> Optional[int]: ...
|
||||
def setReadOnly(self, value) -> None: ...
|
||||
def getStatus(self) -> Optional[int]: ...
|
||||
|
||||
status = ... # type: Optional[int]
|
||||
status: Optional[int]
|
||||
|
||||
def getOutput(self) -> str: ...
|
||||
|
||||
output = ... # type: str
|
||||
output: str
|
||||
|
||||
class AuthSMTPHandler(logging.handlers.SMTPHandler):
|
||||
username = ... # type: str
|
||||
password = ... # type: str
|
||||
username: str
|
||||
password: str
|
||||
def __init__(
|
||||
self,
|
||||
mailhost: str,
|
||||
@@ -165,16 +165,16 @@ class AuthSMTPHandler(logging.handlers.SMTPHandler):
|
||||
|
||||
class LRUCache(Dict[_KT, _VT]):
|
||||
class _Item:
|
||||
previous = ... # type: Optional[LRUCache._Item]
|
||||
next = ... # type: Optional[LRUCache._Item]
|
||||
previous: Optional[LRUCache._Item]
|
||||
next: Optional[LRUCache._Item]
|
||||
key = ...
|
||||
value = ...
|
||||
def __init__(self, key, value) -> None: ...
|
||||
|
||||
_dict = ... # type: Dict[_KT, LRUCache._Item]
|
||||
capacity = ... # type: int
|
||||
head = ... # type: Optional[LRUCache._Item]
|
||||
tail = ... # type: Optional[LRUCache._Item]
|
||||
_dict: Dict[_KT, LRUCache._Item]
|
||||
capacity: int
|
||||
head: Optional[LRUCache._Item]
|
||||
tail: Optional[LRUCache._Item]
|
||||
|
||||
def __init__(self, capacity: int) -> None: ...
|
||||
|
||||
@@ -183,8 +183,8 @@ class LRUCache(Dict[_KT, _VT]):
|
||||
_str = str
|
||||
|
||||
class Password:
|
||||
hashfunc = ... # type: Callable[[bytes], _HashType]
|
||||
str = ... # type: Optional[_str]
|
||||
hashfunc: Callable[[bytes], _HashType]
|
||||
str: Optional[_str]
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
4
third_party/2and3/dateutil/_common.pyi
vendored
4
third_party/2and3/dateutil/_common.pyi
vendored
@@ -9,5 +9,5 @@ class weekday(object):
|
||||
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
weekday = ... # type: int
|
||||
n = ... # type: int
|
||||
weekday: int
|
||||
n: int
|
||||
|
||||
20
third_party/2and3/dateutil/parser.pyi
vendored
20
third_party/2and3/dateutil/parser.pyi
vendored
@@ -5,14 +5,14 @@ _FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
|
||||
|
||||
|
||||
class parserinfo(object):
|
||||
JUMP = ... # type: List[str]
|
||||
WEEKDAYS = ... # type: List[Tuple[str, str]]
|
||||
MONTHS = ... # type: List[Tuple[str, str]]
|
||||
HMS = ... # type: List[Tuple[str, str, str]]
|
||||
AMPM = ... # type: List[Tuple[str, str]]
|
||||
UTCZONE = ... # type: List[str]
|
||||
PERTAIN = ... # type: List[str]
|
||||
TZOFFSET = ... # type: Dict[str, int]
|
||||
JUMP: List[str]
|
||||
WEEKDAYS: List[Tuple[str, str]]
|
||||
MONTHS: List[Tuple[str, str]]
|
||||
HMS: List[Tuple[str, str, str]]
|
||||
AMPM: List[Tuple[str, str]]
|
||||
UTCZONE: List[str]
|
||||
PERTAIN: List[str]
|
||||
TZOFFSET: Dict[str, int]
|
||||
|
||||
def __init__(self, dayfirst: bool = ..., yearfirst: bool = ...) -> None: ...
|
||||
def jump(self, name: Text) -> bool: ...
|
||||
@@ -33,11 +33,11 @@ class parser(object):
|
||||
ignoretz: bool = ..., tzinfos: Optional[Mapping[Text, tzinfo]] = ...,
|
||||
**kwargs: Any) -> datetime: ...
|
||||
|
||||
DEFAULTPARSER = ... # type: parser
|
||||
DEFAULTPARSER: parser
|
||||
def parse(timestr: _FileOrStr, parserinfo: Optional[parserinfo] = ..., **kwargs: Any) -> datetime: ...
|
||||
class _tzparser: ...
|
||||
|
||||
DEFAULTTZPARSER = ... # type: _tzparser
|
||||
DEFAULTTZPARSER: _tzparser
|
||||
|
||||
class InvalidDatetimeError(ValueError): ...
|
||||
class InvalidDateError(InvalidDatetimeError): ...
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user