add (overwrite with) mypy stubs, if available

This commit is contained in:
Matthias Kramm
2015-09-30 07:36:12 -07:00
parent 69e10b3aed
commit 337abed05a
432 changed files with 22360 additions and 776 deletions

0
third_party/2.7/Crypto/Cipher/AES.pyi vendored Normal file
View File

View File

@@ -0,0 +1,15 @@
# Stubs for Crypto.Cipher (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# Names in __all__ with no definition:
# AES
# ARC2
# ARC4
# Blowfish
# CAST
# DES
# DES3
# PKCS1_OAEP
# PKCS1_v1_5
# XOR

View File

@@ -0,0 +1,5 @@
# Stubs for Crypto.Random (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def get_random_bytes(n: int) -> str: ...

View File

@@ -0,0 +1,3 @@
# very stubby version of Crypto.Random
def randint(min: int, max: int) -> int: ...

0
third_party/2.7/Crypto/__init__.py vendored Normal file
View File

0
third_party/2.7/OpenSSL/__init__.pyi vendored Normal file
View File

6
third_party/2.7/OpenSSL/crypto.pyi vendored Normal file
View File

@@ -0,0 +1,6 @@
class X509:
...
def sign(key: str, data: str, digest: str) -> str: ...
def verify(certificate: X509, signature: str, data: str, digest: str) -> None:
raise Exception()

78
third_party/2.7/boto/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,78 @@
# Stubs for boto (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import logging
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
def init_logging(): ...
class NullHandler(logging.Handler):
def emit(self, record): ...
log = ... # type: Any
perflog = ... # type: Any
def set_file_logger(name, filepath, level=..., format_string=None): ...
def set_stream_logger(name, level=..., format_string=None): ...
def connect_sqs(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_s3(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_gs(gs_access_key_id=None, gs_secret_access_key=None, **kwargs): ...
def connect_ec2(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_elb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_autoscale(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudwatch(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_sdb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_fps(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_mturk(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudfront(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_vpc(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_rds(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_rds2(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_emr(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_sns(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_iam(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_route53(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudformation(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_euca(host=None, aws_access_key_id=None, aws_secret_access_key=None, port=8773, path='', is_secure=False, **kwargs): ...
def connect_glacier(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_ec2_endpoint(url, aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_walrus(host=None, aws_access_key_id=None, aws_secret_access_key=None, port=8773, path='', is_secure=False, **kwargs): ...
def connect_ses(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_sts(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_ia(ia_access_key_id=None, ia_secret_access_key=None, is_secure=False, **kwargs): ...
def connect_dynamodb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_swf(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudsearch(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudsearch2(aws_access_key_id=None, aws_secret_access_key=None, sign_request=False, **kwargs): ...
def connect_cloudsearchdomain(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_beanstalk(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_elastictranscoder(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_opsworks(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_redshift(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_support(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudtrail(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_directconnect(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_kinesis(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_logs(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_route53domains(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cognito_identity(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cognito_sync(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_kms(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_awslambda(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_codedeploy(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_configservice(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_cloudhsm(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_ec2containerservice(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def connect_machinelearning(aws_access_key_id=None, aws_secret_access_key=None, **kwargs): ...
def storage_uri(uri_str, default_scheme='', debug=0, validate=True, bucket_storage_uri_class=..., suppress_consec_slashes=True, is_latest=False): ...
def storage_uri_for_key(key): ...

108
third_party/2.7/boto/connection.pyi vendored Normal file
View File

@@ -0,0 +1,108 @@
# Stubs for boto.connection (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
HAVE_HTTPS_CONNECTION = ... # type: Any
ON_APP_ENGINE = ... # type: Any
PORTS_BY_SECURITY = ... # type: Any
DEFAULT_CA_CERTS_FILE = ... # type: Any
class HostConnectionPool:
queue = ... # type: Any
def __init__(self): ...
def size(self): ...
def put(self, conn): ...
def get(self): ...
def clean(self): ...
class ConnectionPool:
CLEAN_INTERVAL = ... # type: Any
STALE_DURATION = ... # type: Any
host_to_pool = ... # type: Any
last_clean_time = ... # type: Any
mutex = ... # type: Any
def __init__(self): ...
def size(self): ...
def get_http_connection(self, host, port, is_secure): ...
def put_http_connection(self, host, port, is_secure, conn): ...
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
def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body): ...
def authorize(self, connection, **kwargs): ...
class AWSAuthConnection:
suppress_consec_slashes = ... # type: Any
num_retries = ... # type: Any
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: Any
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
def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='', provider='', security_token=None, suppress_consec_slashes=True, validate_certs=True, profile_name=None): ...
auth_region_name = ... # type: Any
def connection(self): ...
def aws_access_key_id(self): ...
gs_access_key_id = ... # type: Any
access_key = ... # type: Any
def aws_secret_access_key(self): ...
gs_secret_access_key = ... # type: Any
secret_key = ... # type: Any
def profile_name(self): ...
def get_path(self, path=''): ...
def server_name(self, port=None): ...
proxy = ... # type: Any
proxy_port = ... # type: Any
proxy_user = ... # type: Any
proxy_pass = ... # type: Any
no_proxy = ... # type: Any
use_proxy = ... # type: 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): ...
def new_http_connection(self, host, port, is_secure): ...
def put_http_connection(self, host, port, is_secure, connection): ...
def proxy_ssl(self, host=None, port=None): ...
def prefix_proxy_to_path(self, path, host=None): ...
def get_proxy_auth_header(self): ...
def get_proxy_url_with_auth(self): ...
def set_host_header(self, request): ...
def set_request_hook(self, hook): ...
def build_base_http_request(self, method, path, auth_path, params=None, headers=None, data='', host=None): ...
def make_request(self, method, path, headers=None, data='', host=None, auth_path=None, sender=None, override_num_retries=None, params=None, retry_handler=None): ...
def close(self): ...
class AWSQueryConnection(AWSAuthConnection):
APIVersion = ... # type: Any
ResponseError = ... # type: Any
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host=None, debug=0, https_connection_factory=None, path='', security_token=None, validate_certs=True, profile_name=None, provider=''): ...
def get_utf8_value(self, value): ...
def make_request(self, action, params=None, path='', verb=''): ...
def build_list_params(self, params, items, label): ...
def build_complex_list_params(self, params, items, label, names): ...
def get_list(self, action, params, markers, path='', parent=None, verb=''): ...
def get_object(self, action, params, cls, path='', parent=None, verb=''): ...
def get_status(self, action, params, path='', parent=None, verb=''): ...

11
third_party/2.7/boto/ec2/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,11 @@
# Stubs for boto.ec2 (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
RegionData = ... # type: Any
def regions(**kw_params): ...
def connect_to_region(region_name, **kw_params): ...
def get_region(region_name, **kw_params): ...

View File

@@ -0,0 +1,43 @@
# Stubs for boto.ec2.elb (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from boto.connection import AWSQueryConnection
RegionData = ... # type: 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
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, region=None, path='', security_token=None, validate_certs=True, profile_name=None): ...
def build_list_params(self, params, items, label): ...
def get_all_load_balancers(self, load_balancer_names=None, marker=None): ...
def create_load_balancer(self, name, zones, listeners=None, subnets=None, security_groups=None, scheme='', complex_listeners=None): ...
def create_load_balancer_listeners(self, name, listeners=None, complex_listeners=None): ...
def delete_load_balancer(self, name): ...
def delete_load_balancer_listeners(self, name, ports): ...
def enable_availability_zones(self, load_balancer_name, zones_to_add): ...
def disable_availability_zones(self, load_balancer_name, zones_to_remove): ...
def modify_lb_attribute(self, load_balancer_name, attribute, value): ...
def get_all_lb_attributes(self, load_balancer_name): ...
def get_lb_attribute(self, load_balancer_name, attribute): ...
def register_instances(self, load_balancer_name, instances): ...
def deregister_instances(self, load_balancer_name, instances): ...
def describe_instance_health(self, load_balancer_name, instances=None): ...
def configure_health_check(self, name, health_check): ...
def set_lb_listener_SSL_certificate(self, lb_name, lb_port, ssl_certificate_id): ...
def create_app_cookie_stickiness_policy(self, name, lb_name, policy_name): ...
def create_lb_cookie_stickiness_policy(self, cookie_expiration_period, lb_name, policy_name): ...
def create_lb_policy(self, lb_name, policy_name, policy_type, policy_attributes): ...
def delete_lb_policy(self, lb_name, policy_name): ...
def set_lb_policies_of_listener(self, lb_name, lb_port, policies): ...
def set_lb_policies_of_backend_server(self, lb_name, instance_port, policies): ...
def apply_security_groups_to_lb(self, name, security_groups): ...
def attach_lb_to_subnets(self, name, subnets): ...
def detach_lb_from_subnets(self, name, subnets): ...

View File

View File

@@ -0,0 +1,35 @@
from typing import TypeVar, Generic, Any, Iterable, Iterator, Callable, Tuple
_T = TypeVar('_T')
class Future(Generic[_T]):
def cancel(self) -> bool: ...
def cancelled(self) -> bool: ...
def running(self) -> bool: ...
def done(self) -> bool: ...
def result(self, timeout: float = None) -> _T: ...
def exception(self, timeout: float = None) -> Exception: ...
def add_done_callback(self, fn: Callable[[Future], Any]) -> None: ...
def set_running_or_notify_cancel(self) -> None: ...
def set_result(self, result: _T) -> None: ...
def set_exception(self, exception: Exception) -> None: ...
class Executor:
def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...
def map(self, func: Callable[..., _T], *iterables: Any, timeout: float = None) -> Iterable[_T]: ...
def shutdown(self, wait: bool = True) -> None: ...
class ThreadPoolExecutor(Executor):
def __init__(self, max_workers: int) -> None: ...
class ProcessPoolExecutor(Executor):
def __init__(self, max_workers: None) -> None: ...
def wait(fs: Iterable[Future], timeout: float = None, return_when: str = None) -> Tuple[Iterable[Future], Iterable[Future]]: ...
FIRST_COMPLETED = ''
FIRST_EXCEPTION = ''
ALL_COMPLETED = ''
def as_completed(fs: Iterable[Future], timeout: float = None) -> Iterator[Future]: ...

27
third_party/2.7/croniter.pyi vendored Normal file
View File

@@ -0,0 +1,27 @@
# Stubs for croniter.croniter (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class croniter:
MONTHS_IN_YEAR = ... # type: Any
RANGES = ... # type: Any
DAYS = ... # type: Any
ALPHACONV = ... # type: Any
LOWMAP = ... # type: Any
bad_length = ... # type: Any
tzinfo = ... # type: Any
cur = ... # type: Any
exprs = ... # type: Any
expanded = ... # type: Any
def __init__(self, expr_format, start_time=None): ...
def get_next(self, ret_type=...): ...
def get_prev(self, ret_type=...): ...
def get_current(self, ret_type=...): ...
def __iter__(self): ...
__next__ = ... # type: Any
def all_next(self, ret_type=...): ...
def all_prev(self, ret_type=...): ...
iter = ... # type: Any
def is_leap(self, year): ...

View File

@@ -0,0 +1,301 @@
# Stubs for fb303.FacebookService (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from thrift.Thrift import TProcessor
fastbinary = ... # type: Any
class Iface:
def getName(self): ...
def getVersion(self): ...
def getStatus(self): ...
def getStatusDetails(self): ...
def getCounters(self): ...
def getCounter(self, key): ...
def setOption(self, key, value): ...
def getOption(self, key): ...
def getOptions(self): ...
def getCpuProfile(self, profileDurationInSec): ...
def aliveSince(self): ...
def reinitialize(self): ...
def shutdown(self): ...
class Client(Iface):
def __init__(self, iprot, oprot=None): ...
def getName(self): ...
def send_getName(self): ...
def recv_getName(self): ...
def getVersion(self): ...
def send_getVersion(self): ...
def recv_getVersion(self): ...
def getStatus(self): ...
def send_getStatus(self): ...
def recv_getStatus(self): ...
def getStatusDetails(self): ...
def send_getStatusDetails(self): ...
def recv_getStatusDetails(self): ...
def getCounters(self): ...
def send_getCounters(self): ...
def recv_getCounters(self): ...
def getCounter(self, key): ...
def send_getCounter(self, key): ...
def recv_getCounter(self): ...
def setOption(self, key, value): ...
def send_setOption(self, key, value): ...
def recv_setOption(self): ...
def getOption(self, key): ...
def send_getOption(self, key): ...
def recv_getOption(self): ...
def getOptions(self): ...
def send_getOptions(self): ...
def recv_getOptions(self): ...
def getCpuProfile(self, profileDurationInSec): ...
def send_getCpuProfile(self, profileDurationInSec): ...
def recv_getCpuProfile(self): ...
def aliveSince(self): ...
def send_aliveSince(self): ...
def recv_aliveSince(self): ...
def reinitialize(self): ...
def send_reinitialize(self): ...
def shutdown(self): ...
def send_shutdown(self): ...
class Processor(Iface, TProcessor):
def __init__(self, handler): ...
def process(self, iprot, oprot): ...
def process_getName(self, seqid, iprot, oprot): ...
def process_getVersion(self, seqid, iprot, oprot): ...
def process_getStatus(self, seqid, iprot, oprot): ...
def process_getStatusDetails(self, seqid, iprot, oprot): ...
def process_getCounters(self, seqid, iprot, oprot): ...
def process_getCounter(self, seqid, iprot, oprot): ...
def process_setOption(self, seqid, iprot, oprot): ...
def process_getOption(self, seqid, iprot, oprot): ...
def process_getOptions(self, seqid, iprot, oprot): ...
def process_getCpuProfile(self, seqid, iprot, oprot): ...
def process_aliveSince(self, seqid, iprot, oprot): ...
def process_reinitialize(self, seqid, iprot, oprot): ...
def process_shutdown(self, seqid, iprot, oprot): ...
class getName_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getName_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getVersion_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getVersion_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getStatus_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getStatus_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getStatusDetails_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getStatusDetails_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCounters_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCounters_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCounter_args:
thrift_spec = ... # type: Any
key = ... # type: Any
def __init__(self, key=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCounter_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class setOption_args:
thrift_spec = ... # type: Any
key = ... # type: Any
value = ... # type: Any
def __init__(self, key=None, value=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class setOption_result:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getOption_args:
thrift_spec = ... # type: Any
key = ... # type: Any
def __init__(self, key=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getOption_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getOptions_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getOptions_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCpuProfile_args:
thrift_spec = ... # type: Any
profileDurationInSec = ... # type: Any
def __init__(self, profileDurationInSec=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class getCpuProfile_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class aliveSince_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class aliveSince_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class reinitialize_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class shutdown_args:
thrift_spec = ... # type: Any
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...

0
third_party/2.7/fb303/__init__.pyi vendored Normal file
View File

216
third_party/2.7/gflags.pyi vendored Normal file
View File

@@ -0,0 +1,216 @@
from typing import Any, Callable, Dict, Iterable, IO, List, Union
from types import ModuleType
class FlagsError(Exception): ...
class DuplicateFlag(FlagsError): ...
class CantOpenFlagFileError(FlagsError): ...
class DuplicateFlagCannotPropagateNoneToSwig(DuplicateFlag): ...
class DuplicateFlagError(DuplicateFlag):
def __init__(self, flagname: str, flag_values: FlagValues, other_flag_values: FlagValues = None) -> None: ...
class IllegalFlagValue(FlagsError): ...
class UnrecognizedFlag(FlagsError): ...
class UnrecognizedFlagError(UnrecognizedFlag):
def __init__(self, flagname: str, flagvalue: str = '') -> None: ...
def GetHelpWidth() -> int: ...
def CutCommonSpacePrefix(text) -> str: ...
def TextWrap(text: str, length: int = None, indent: str = '', firstline_indent: str = None, tabs: str = ' ') -> str: ...
def DocToHelp(doc: str) -> str: ...
class FlagValues:
def __init__(self) -> None: ...
def UseGnuGetOpt(self, use_gnu_getopt: bool = True) -> None: ...
def IsGnuGetOpt(self) -> bool: ...
# TODO dict type
def FlagDict(self) -> dict: ...
def FlagsByModuleDict(self) -> Dict[str, List[Flag]]: ...
def FlagsByModuleIdDict(self) -> Dict[int, List[Flag]]: ...
def KeyFlagsByModuleDict(self) -> Dict[str, List[Flag]]: ...
def FindModuleDefiningFlag(self, flagname: str, default: str = None) -> str: ...
def FindModuleIdDefiningFlag(self, flagname: str, default: int = None) -> int: ...
def AppendFlagValues(self, flag_values: FlagValues) -> None: ...
def RemoveFlagValues(self, flag_values: FlagValues) -> None: ...
def __setitem__(self, name: str, flag: Flag) -> None: ...
def __getitem__(self, name: str) -> Flag: ...
def __getattr__(self, name: str) -> Any: ...
def __setattr__(self, name: str, value: Any): ...
def __delattr__(self, flag_name: str) -> None: ...
def SetDefault(self, name: str, value: Any) -> None: ...
def __contains__(self, name: str) -> bool: ...
has_key = __contains__
def __iter__(self) -> Iterable[str]: ...
def __call__(self, argv: List[str]) -> List[str]: ...
def Reset(self) -> None: ...
def RegisteredFlags(self) -> List[str]: ...
def FlagValuesDict(self) -> Dict[str, Any]: ...
def __str__(self) -> str: ...
def GetHelp(self, prefix: str = '') -> str: ...
def ModuleHelp(self, module: Union[ModuleType, str]) -> str: ...
def MainModuleHelp(self) -> str: ...
def get(self, name: str, default: Any) -> Any: ...
def ShortestUniquePrefixes(self, fl: Dict[str, Flag]) -> Dict[str, str]: ...
def ExtractFilename(self, flagfile_str: str) -> str: ...
def ReadFlagsFromFiles(self, argv: List[str], force_gnu: bool = True) -> List[str]: ...
def FlagsIntoString(self) -> str: ...
def AppendFlagsIntoFile(self, filename: str) -> None: ...
def WriteHelpInXMLFormat(self, outfile: IO[str] = None) -> None: ...
# TODO validator: gflags_validators.Validator
def AddValidator(self, validator: Any) -> None: ...
FLAGS = None # type: FlagValues
class Flag:
name = ''
default = None # type: Any
default_as_str = ''
value = None # type: Any
help = ''
short_name = ''
boolean = False
present = False
parser = None # type: ArgumentParser
serializer = None # type: ArgumentSerializer
allow_override = False
def __init__(self, parser: ArgumentParser, serializer: ArgumentSerializer, name: str,
default: str, help_string: str, short_name: str = None, boolean: bool = False,
allow_override: bool = False) -> None: ...
def Parse(self, argument: Any) -> Any: ...
def Unparse(self) -> None: ...
def Serialize(self) -> str: ...
def SetDefault(self, value: Any) -> None: ...
def Type(self) -> str: ...
def WriteInfoInXMLFormat(self, outfile: IO[str], module_name: str, is_key: bool = False, indent: str = '') -> None: ...
class ArgumentParser(object):
syntactic_help = ""
# TODO what is this
def Parse(self, argument: Any) -> Any: ...
def Type(self) -> str: ...
def WriteCustomInfoInXMLFormat(self, outfile: IO[str], indent: str) -> None: ...
class ArgumentSerializer:
def Serialize(self, value: Any) -> unicode: ...
class ListSerializer(ArgumentSerializer):
def __init__(self, list_sep: str) -> None: ...
def Serialize(self, value: List[Any]) -> str: ...
def RegisterValidator(flag_name: str,
checker: Callable[[Any], bool],
message: str = 'Flag validation failed',
flag_values: FlagValues = ...) -> None: ...
def MarkFlagAsRequired(flag_name: str, flag_values: FlagValues = ...) -> None: ...
def DEFINE(parser: ArgumentParser, name: str, default: Any, help: str,
flag_values: FlagValues = ..., serializer: ArgumentSerializer = None, **args: Any) -> None: ...
def DEFINE_flag(flag: Flag, flag_values: FlagValues = ...) -> None: ...
def DECLARE_key_flag(flag_name: str, flag_values: FlagValues = ...) -> None: ...
def ADOPT_module_key_flags(module: ModuleType, flag_values: FlagValues = ...) -> None: ...
def DEFINE_string(name: str, default: str, help: str, flag_values: FlagValues = ..., **args: Any): ...
class BooleanParser(ArgumentParser):
def Convert(self, argument: Any) -> bool: ...
def Parse(self, argument: Any) -> bool: ...
def Type(self) -> str: ...
class BooleanFlag(Flag):
def __init__(self, name: str, default: bool, help: str, short_name=None, **args: Any) -> None: ...
def DEFINE_boolean(name: str, default: bool, help: str, flag_values: FlagValues = ..., **args: Any) -> None: ...
DEFINE_bool = DEFINE_boolean
class HelpFlag(BooleanFlag):
def __init__(self) -> None: ...
def Parse(self, arg: Any) -> None: ...
class HelpXMLFlag(BooleanFlag):
def __init__(self) -> None: ...
def Parse(self, arg: Any) -> None: ...
class HelpshortFlag(BooleanFlag):
def __init__(self) -> None: ...
def Parse(self, arg: Any) -> None: ...
class NumericParser(ArgumentParser):
def IsOutsideBounds(self, val: float) -> bool: ...
def Parse(self, argument: Any) -> float: ...
def WriteCustomInfoInXMLFormat(self, outfile: IO[str], indent: str) -> None: ...
def Convert(self, argument: Any) -> Any: ...
class FloatParser(NumericParser):
number_article = ''
number_name = ''
syntactic_help = ''
def __init__(self, lower_bound: float = None, upper_bound: float = None) -> None: ...
def Convert(self, argument: Any) -> float: ...
def Type(self) -> str: ...
def DEFINE_float(name: str, default: float, help: str, lower_bound: float = None,
upper_bound: float = None, flag_values: FlagValues = ..., **args: Any) -> None: ...
class IntegerParser(NumericParser):
number_article = ''
number_name = ''
syntactic_help = ''
def __init__(self, lower_bound: int = None, upper_bound: int = None) -> None: ...
def Convert(self, argument: Any) -> int: ...
def Type(self) -> str: ...
def DEFINE_integer(name: str, default: int, help: str, lower_bound: int = None,
upper_bound: int = None, flag_values: FlagValues = ..., **args: Any) -> None: ...
class EnumParser(ArgumentParser):
def __init__(self, enum_values: List[str]) -> None: ...
def Parse(self, argument: Any) -> Any: ...
def Type(self) -> str: ...
class EnumFlag(Flag):
def __init__(self, name: str, default: str, help: str, enum_values: List[str],
short_name: str, **args: Any) -> None: ...
def DEFINE_enum(name: str, default: str, enum_values: List[str], help: str,
flag_values: FlagValues = ..., **args: Any) -> None: ...
class BaseListParser(ArgumentParser):
def __init__(self, token: str = None, name: str = None) -> None: ...
def Parse(self, argument: Any) -> list: ...
def Type(self) -> str: ...
class ListParser(BaseListParser):
def __init__(self) -> None: ...
def WriteCustomInfoInXMLFormat(self, outfile: IO[str], indent: str): ...
class WhitespaceSeparatedListParser(BaseListParser):
def __init__(self) -> None: ...
def WriteCustomInfoInXMLFormat(self, outfile: IO[str], indent: str): ...
def DEFINE_list(name: str, default: List[str], help: str, flag_values: FlagValues = ..., **args: Any) -> None: ...
def DEFINE_spaceseplist(name: str, default: List[str], help: str, flag_values: FlagValues = ..., **args: Any) -> None: ...
class MultiFlag(Flag):
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def Parse(self, arguments: Any) -> None: ...
def Serialize(self) -> str: ...
def Type(self) -> str: ...
def DEFINE_multistring(name: str, default: Union[str, List[str]], help: str,
flag_values: FlagValues = ..., **args: Any) -> None: ...
def DEFINE_multi_int(name: str, default: Union[int, List[int]], help: str, lower_bound: int = None,
upper_bound: int = None, flag_values: FlagValues = FLAGS, **args: Any) -> None: ...
def DEFINE_multi_float(name: str, default: Union[float, List[float]], help: str,
lower_bound: float = None, upper_bound: float = None,
flag_values: FlagValues = ..., **args: Any) -> None: ...

0
third_party/2.7/google/__init__.pyi vendored Normal file
View File

View File

View File

@@ -0,0 +1,163 @@
# Stubs for google.protobuf.descriptor (Python 2.7)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class Error(Exception): ...
class TypeTransformationError(Error): ...
class DescriptorMetaclass(type):
def __instancecheck__(cls, obj): ...
class DescriptorBase:
__metaclass__ = ... # type: Any
has_options = ... # type: Any
def __init__(self, options, options_class_name): ...
def GetOptions(self): ...
class _NestedDescriptorBase(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
file = ... # type: Any
containing_type = ... # type: Any
def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None): ...
def GetTopLevelContainingType(self): ...
def CopyToProto(self, proto): ...
class Descriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None): ...
fields = ... # type: Any
fields_by_number = ... # type: Any
fields_by_name = ... # type: Any
nested_types = ... # type: Any
nested_types_by_name = ... # type: Any
enum_types = ... # type: Any
enum_types_by_name = ... # type: Any
enum_values_by_name = ... # type: Any
extensions = ... # type: Any
extensions_by_name = ... # type: Any
is_extendable = ... # type: Any
extension_ranges = ... # type: Any
oneofs = ... # type: Any
oneofs_by_name = ... # type: Any
syntax = ... # type: Any
def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None): ...
def EnumValueName(self, enum, value): ...
def CopyToProto(self, proto): ...
class FieldDescriptor(DescriptorBase):
TYPE_DOUBLE = ... # type: Any
TYPE_FLOAT = ... # type: Any
TYPE_INT64 = ... # type: Any
TYPE_UINT64 = ... # type: Any
TYPE_INT32 = ... # type: Any
TYPE_FIXED64 = ... # type: Any
TYPE_FIXED32 = ... # type: Any
TYPE_BOOL = ... # type: Any
TYPE_STRING = ... # type: Any
TYPE_GROUP = ... # type: Any
TYPE_MESSAGE = ... # type: Any
TYPE_BYTES = ... # type: Any
TYPE_UINT32 = ... # type: Any
TYPE_ENUM = ... # type: Any
TYPE_SFIXED32 = ... # type: Any
TYPE_SFIXED64 = ... # type: Any
TYPE_SINT32 = ... # type: Any
TYPE_SINT64 = ... # type: Any
MAX_TYPE = ... # type: Any
CPPTYPE_INT32 = ... # type: Any
CPPTYPE_INT64 = ... # type: Any
CPPTYPE_UINT32 = ... # type: Any
CPPTYPE_UINT64 = ... # type: Any
CPPTYPE_DOUBLE = ... # type: Any
CPPTYPE_FLOAT = ... # type: Any
CPPTYPE_BOOL = ... # type: Any
CPPTYPE_ENUM = ... # type: Any
CPPTYPE_STRING = ... # type: Any
CPPTYPE_MESSAGE = ... # type: Any
MAX_CPPTYPE = ... # type: Any
LABEL_OPTIONAL = ... # type: Any
LABEL_REQUIRED = ... # type: Any
LABEL_REPEATED = ... # type: Any
MAX_LABEL = ... # type: Any
MAX_FIELD_NUMBER = ... # type: Any
FIRST_RESERVED_FIELD_NUMBER = ... # type: Any
LAST_RESERVED_FIELD_NUMBER = ... # type: Any
def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=None, has_default_value=True, containing_oneof=None): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
cpp_type = ... # type: Any
label = ... # type: Any
has_default_value = ... # type: Any
default_value = ... # type: Any
containing_type = ... # type: Any
message_type = ... # type: Any
enum_type = ... # type: Any
is_extension = ... # type: Any
extension_scope = ... # type: Any
containing_oneof = ... # type: Any
def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=None, has_default_value=True, containing_oneof=None): ...
@staticmethod
def ProtoTypeToCppProtoType(proto_type): ...
class EnumDescriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None): ...
values = ... # type: Any
values_by_name = ... # type: Any
values_by_number = ... # type: Any
def __init__(self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None): ...
def CopyToProto(self, proto): ...
class EnumValueDescriptor(DescriptorBase):
def __new__(cls, name, index, number, type=None, options=None): ...
name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
def __init__(self, name, index, number, type=None, options=None): ...
class OneofDescriptor:
def __new__(cls, name, full_name, index, containing_type, fields): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_type = ... # type: Any
fields = ... # type: Any
def __init__(self, name, full_name, index, containing_type, fields): ...
class ServiceDescriptor(_NestedDescriptorBase):
index = ... # type: Any
methods = ... # type: Any
def __init__(self, name, full_name, index, methods, options=None, file=None, serialized_start=None, serialized_end=None): ...
def FindMethodByName(self, name): ...
def CopyToProto(self, proto): ...
class MethodDescriptor(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_service = ... # type: Any
input_type = ... # type: Any
output_type = ... # type: Any
def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=None): ...
class FileDescriptor(DescriptorBase):
def __new__(cls, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ...
_options = ... # type: Any
message_types_by_name = ... # type: Any
name = ... # type: Any
package = ... # type: Any
syntax = ... # type: Any
serialized_pb = ... # type: Any
enum_types_by_name = ... # type: Any
extensions_by_name = ... # type: Any
dependencies = ... # type: Any
def __init__(self, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ...
def CopyToProto(self, proto): ...
def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True, syntax=None): ...
def _ParseOptions(message, string): ...

View File

@@ -0,0 +1,2 @@
class FileOptions(object): ...
class FieldOptions(object): ...

View File

View File

@@ -0,0 +1,34 @@
# Stubs for google.protobuf.internal.decoder (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def ReadTag(buffer, pos): ...
def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): ...
Int32Decoder = ... # type: Any
Int64Decoder = ... # type: Any
UInt32Decoder = ... # type: Any
UInt64Decoder = ... # type: Any
SInt32Decoder = ... # type: Any
SInt64Decoder = ... # type: Any
Fixed32Decoder = ... # type: Any
Fixed64Decoder = ... # type: Any
SFixed32Decoder = ... # type: Any
SFixed64Decoder = ... # type: Any
FloatDecoder = ... # type: Any
DoubleDecoder = ... # type: Any
BoolDecoder = ... # type: Any
def StringDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): ...
MESSAGE_SET_ITEM_TAG = ... # type: Any
def MessageSetItemDecoder(extensions_by_number): ...
def MapDecoder(field_descriptor, new_default, is_message_map): ...
SkipField = ... # type: Any

View File

@@ -0,0 +1,38 @@
# Stubs for google.protobuf.internal.encoder (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
Int32Sizer = ... # type: Any
UInt32Sizer = ... # type: Any
SInt32Sizer = ... # type: Any
Fixed32Sizer = ... # type: Any
Fixed64Sizer = ... # type: Any
BoolSizer = ... # type: Any
def StringSizer(field_number, is_repeated, is_packed): ...
def BytesSizer(field_number, is_repeated, is_packed): ...
def GroupSizer(field_number, is_repeated, is_packed): ...
def MessageSizer(field_number, is_repeated, is_packed): ...
def MessageSetItemSizer(field_number): ...
def MapSizer(field_descriptor): ...
def TagBytes(field_number, wire_type): ...
Int32Encoder = ... # type: Any
UInt32Encoder = ... # type: Any
SInt32Encoder = ... # type: Any
Fixed32Encoder = ... # type: Any
Fixed64Encoder = ... # type: Any
SFixed32Encoder = ... # type: Any
SFixed64Encoder = ... # type: Any
FloatEncoder = ... # type: Any
DoubleEncoder = ... # type: Any
def BoolEncoder(field_number, is_repeated, is_packed): ...
def StringEncoder(field_number, is_repeated, is_packed): ...
def BytesEncoder(field_number, is_repeated, is_packed): ...
def GroupEncoder(field_number, is_repeated, is_packed): ...
def MessageEncoder(field_number, is_repeated, is_packed): ...
def MessageSetItemEncoder(field_number): ...
def MapEncoder(field_descriptor): ...

View File

@@ -0,0 +1,11 @@
from typing import Any, Tuple
class EnumTypeWrapper(object):
def __init__(self, enum_type: Any) -> None: ...
def Name(self, number: int) -> str: ...
def Value(self, name: str) -> int: ...
def keys(self) -> List[str]: ...
def values(self) -> List[int]: ...
@classmethod
def items(cls) -> List[Tuple[str, int]]: ...

View File

@@ -0,0 +1,54 @@
# Stubs for google.protobuf.internal.wire_format (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
TAG_TYPE_BITS = ... # type: Any
TAG_TYPE_MASK = ... # type: Any
WIRETYPE_VARINT = ... # type: Any
WIRETYPE_FIXED64 = ... # type: Any
WIRETYPE_LENGTH_DELIMITED = ... # type: Any
WIRETYPE_START_GROUP = ... # type: Any
WIRETYPE_END_GROUP = ... # type: Any
WIRETYPE_FIXED32 = ... # type: Any
INT32_MAX = ... # type: Any
INT32_MIN = ... # type: Any
UINT32_MAX = ... # type: Any
INT64_MAX = ... # type: Any
INT64_MIN = ... # type: Any
UINT64_MAX = ... # type: Any
FORMAT_UINT32_LITTLE_ENDIAN = ... # type: Any
FORMAT_UINT64_LITTLE_ENDIAN = ... # type: Any
FORMAT_FLOAT_LITTLE_ENDIAN = ... # type: Any
FORMAT_DOUBLE_LITTLE_ENDIAN = ... # type: Any
def PackTag(field_number, wire_type): ...
def UnpackTag(tag): ...
def ZigZagEncode(value): ...
def ZigZagDecode(value): ...
def Int32ByteSize(field_number, int32): ...
def Int32ByteSizeNoTag(int32): ...
def Int64ByteSize(field_number, int64): ...
def UInt32ByteSize(field_number, uint32): ...
def UInt64ByteSize(field_number, uint64): ...
def SInt32ByteSize(field_number, int32): ...
def SInt64ByteSize(field_number, int64): ...
def Fixed32ByteSize(field_number, fixed32): ...
def Fixed64ByteSize(field_number, fixed64): ...
def SFixed32ByteSize(field_number, sfixed32): ...
def SFixed64ByteSize(field_number, sfixed64): ...
def FloatByteSize(field_number, flt): ...
def DoubleByteSize(field_number, double): ...
def BoolByteSize(field_number, b): ...
def EnumByteSize(field_number, enum): ...
def StringByteSize(field_number, string): ...
def BytesByteSize(field_number, b): ...
def GroupByteSize(field_number, message): ...
def MessageByteSize(field_number, message): ...
def MessageSetItemByteSize(field_number, msg): ...
def TagByteSize(field_number): ...
NON_PACKABLE_TYPES = ... # type: Any
def IsTypePackable(field_type): ...

View File

@@ -0,0 +1,36 @@
# Stubs for google.protobuf.message (Python 2.7)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Sequence, Optional, Tuple
from .descriptor import FieldDescriptor
class Error(Exception): ...
class DecodeError(Error): ...
class EncodeError(Error): ...
class Message:
DESCRIPTOR = ... # type: Any
def __deepcopy__(self, memo=None): ...
def __eq__(self, other_msg): ...
def __ne__(self, other_msg): ...
def MergeFrom(self, other_msg: Message) -> None: ...
def CopyFrom(self, other_msg: Message) -> None: ...
def Clear(self) -> None: ...
def SetInParent(self) -> None: ...
def IsInitialized(self) -> bool: ...
def MergeFromString(self, serialized: Any) -> int: ... # TODO: we need to be able to call buffer() on serialized
def ParseFromString(self, serialized: Any) -> None: ...
def SerializeToString(self) -> str: ...
def SerializePartialToString(self) -> str: ...
def ListFields(self) -> Sequence[Tuple[FieldDescriptor, Any]]: ...
def HasField(self, field_name: str) -> bool: ...
def ClearField(self, field_name: str) -> None: ...
def WhichOneof(self, oneof_group) -> Optional[str]: ...
def HasExtension(self, extension_handle): ...
def ClearExtension(self, extension_handle): ...
def ByteSize(self) -> int: ...
# TODO: check kwargs
def __init__(self, **kwargs): ...

View File

@@ -0,0 +1,10 @@
# Stubs for google.protobuf.reflection (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class GeneratedProtocolMessageType(type):
def __new__(cls, name, bases, dictionary): ...
def __init__(cls, name, bases, dictionary): ...
def ParseMessage(descriptor, byte_str): ...
def MakeClass(descriptor): ...

4
third_party/2.7/kazoo/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,4 @@
# Stubs for kazoo (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

100
third_party/2.7/kazoo/client.pyi vendored Normal file
View File

@@ -0,0 +1,100 @@
# Stubs for kazoo.client (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
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
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
def __init__(self, hosts='', timeout=0.0, client_id=None, handler=None, default_acl=None, auth_data=None, read_only=None, randomize_hosts=True, connection_retry=None, command_retry=None, logger=None, **kwargs): ...
@property
def client_state(self): ...
@property
def client_id(self): ...
@property
def connected(self): ...
def set_hosts(self, hosts, randomize_hosts=None): ...
def add_listener(self, listener): ...
def remove_listener(self, listener): ...
def start(self, timeout=15): ...
def start_async(self): ...
def stop(self): ...
def restart(self): ...
def close(self): ...
def command(self, cmd=''): ...
def server_version(self, retries=3): ...
def add_auth(self, scheme, credential): ...
def add_auth_async(self, scheme, credential): ...
def unchroot(self, path): ...
def sync_async(self, path): ...
def sync(self, path): ...
def create(self, path, value='', acl=None, ephemeral=False, sequence=False, makepath=False): ...
def create_async(self, path, value='', acl=None, ephemeral=False, sequence=False, makepath=False): ...
def ensure_path(self, path, acl=None): ...
def ensure_path_async(self, path, acl=None): ...
def exists(self, path, watch=None): ...
def exists_async(self, path, watch=None): ...
def get(self, path, watch=None): ...
def get_async(self, path, watch=None): ...
def get_children(self, path, watch=None, include_data=False): ...
def get_children_async(self, path, watch=None, include_data=False): ...
def get_acls(self, path): ...
def get_acls_async(self, path): ...
def set_acls(self, path, acls, version=-1): ...
def set_acls_async(self, path, acls, version=-1): ...
def set(self, path, value, version=-1): ...
def set_async(self, path, value, version=-1): ...
def transaction(self): ...
def delete(self, path, version=-1, recursive=False): ...
def delete_async(self, path, version=-1): ...
def reconfig(self, joining, leaving, new_members, from_config=-1): ...
def reconfig_async(self, joining, leaving, new_members, from_config): ...
class TransactionRequest:
client = ... # type: Any
operations = ... # type: Any
committed = ... # type: Any
def __init__(self, client): ...
def create(self, path, value='', acl=None, ephemeral=False, sequence=False): ...
def delete(self, path, version=-1): ...
def set_data(self, path, value, version=-1): ...
def check(self, path, version): ...
def commit_async(self): ...
def commit(self): ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, exc_tb): ...
class KazooState:
...

62
third_party/2.7/kazoo/exceptions.pyi vendored Normal file
View File

@@ -0,0 +1,62 @@
# Stubs for kazoo.exceptions (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class KazooException(Exception): ...
class ZookeeperError(KazooException): ...
class CancelledError(KazooException): ...
class ConfigurationError(KazooException): ...
class ZookeeperStoppedError(KazooException): ...
class ConnectionDropped(KazooException): ...
class LockTimeout(KazooException): ...
class WriterNotClosedException(KazooException): ...
EXCEPTIONS = ... # type: Any
class RolledBackError(ZookeeperError): ...
class SystemZookeeperError(ZookeeperError): ...
class RuntimeInconsistency(ZookeeperError): ...
class DataInconsistency(ZookeeperError): ...
class ConnectionLoss(ZookeeperError): ...
class MarshallingError(ZookeeperError): ...
class UnimplementedError(ZookeeperError): ...
class OperationTimeoutError(ZookeeperError): ...
class BadArgumentsError(ZookeeperError): ...
class NewConfigNoQuorumError(ZookeeperError): ...
class ReconfigInProcessError(ZookeeperError): ...
class APIError(ZookeeperError): ...
class NoNodeError(ZookeeperError): ...
class NoAuthError(ZookeeperError): ...
class BadVersionError(ZookeeperError): ...
class NoChildrenForEphemeralsError(ZookeeperError): ...
class NodeExistsError(ZookeeperError): ...
class NotEmptyError(ZookeeperError): ...
class SessionExpiredError(ZookeeperError): ...
class InvalidCallbackError(ZookeeperError): ...
class InvalidACLError(ZookeeperError): ...
class AuthFailedError(ZookeeperError): ...
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

View File

@@ -0,0 +1,4 @@
# Stubs for kazoo.recipe (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

View File

@@ -0,0 +1,25 @@
# Stubs for kazoo.recipe.watchers (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
log = ... # type: Any
class DataWatch:
def __init__(self, client, path, func=None, *args, **kwargs): ...
def __call__(self, func): ...
class ChildrenWatch:
def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False): ...
def __call__(self, func): ...
class PatientChildrenWatch:
client = ... # type: Any
path = ... # type: Any
children = ... # type: Any
time_boundary = ... # type: Any
children_changed = ... # type: Any
def __init__(self, client, path, time_boundary=30): ...
asy = ... # type: Any
def start(self): ...

81
third_party/2.7/pycurl.pyi vendored Normal file
View File

@@ -0,0 +1,81 @@
# TODO(MichalPokorny): more precise types
from typing import Any, Tuple, Optional
GLOBAL_SSL = ... # type: int
GLOBAL_WIN32 = ... # type: int
GLOBAL_ALL = ... # type: int
GLOBAL_NOTHING = ... # type: int
GLOBAL_DEFAULT = ... # type: int
def global_init(option: int) -> None: ...
def global_cleanup() -> None: ...
version = ... # type: str
def version_info() -> Tuple[int, str, int, str, int, str,
int, str, tuple, Any, int, Any]: ...
class error(Exception):
pass
class Curl(object):
def close(self) -> None: ...
def setopt(self, option: int, value: Any) -> None: ...
def perform(self) -> None: ...
def getinfo(self, info: Any) -> Any: ...
def reset(self) -> None: ...
def unsetopt(self, option: int) -> Any: ...
def pause(self, bitmask: Any) -> Any: ...
def errstr(self) -> str: ...
# TODO(MichalPokorny): wat?
USERPWD = ... # type: int
class CurlMulti(object):
def close(self) -> None: ...
def add_handle(self, obj: Curl) -> None: ...
def remove_handle(self, obj: Curl) -> None: ...
def perform(self) -> Tuple[Any, int]: ...
def fdset(self) -> tuple: ...
def select(self, timeout: float = None) -> int: ...
def info_read(self, max_objects: int) -> tuple: ...
class CurlShare(object):
def close(self) -> None: ...
def setopt(self, option: int, value: Any) -> Any: ...
CAINFO = ... # type: int
CONNECTTIMEOUT_MS = ... # type: int
CUSTOMREQUEST = ... # type: int
ENCODING = ... # type: int
E_CALL_MULTI_PERFORM = ... # type: int
E_OPERATION_TIMEOUTED = ... # type: int
FOLLOWLOCATION = ... # type: int
HEADERFUNCTION = ... # type: int
HTTPGET = ... # type: int
HTTPHEADER = ... # type: int
HTTP_CODE = ... # type: int
INFILESIE_LARGE = ... # type: int
INFILESIZE_LARGE = ... # type: int
NOBODY = ... # type: int
NOPROGRESS = ... # type: int
NOSIGNAL = ... # type: int
POST = ... # type: int
POSTFIELDS = ... # type: int
POSTFIELDSIZE = ... # type: int
PRIMARY_IP = ... # type: int
PROGRESSFUNCTION = ... # type: int
PROXY = ... # type: int
READFUNCTION = ... # type: int
RESPONSE_CODE = ... # type: int
SSLCERT = ... # type: int
SSLCERTPASSWD = ... # type: int
SSLKEY = ... # type: int
SSLKEYPASSWD = ... # type: int
SSL_VERIFYHOST = ... # type: int
SSL_VERIFYPEER = ... # type: int
TIMEOUT_MS = ... # type: int
UPLOAD = ... # type: int
URL = ... # type: int
WRITEFUNCTION = ... # type: int

28
third_party/2.7/redis/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,28 @@
# Stubs for redis (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import redis.client
import redis.connection
import redis.utils
import redis.exceptions
Redis = client.Redis
StrictRedis = client.StrictRedis
BlockingConnectionPool = connection.BlockingConnectionPool
ConnectionPool = connection.ConnectionPool
Connection = connection.Connection
SSLConnection = connection.SSLConnection
UnixDomainSocketConnection = connection.UnixDomainSocketConnection
from_url = utils.from_url
AuthenticationError = exceptions.AuthenticationError
BusyLoadingError = exceptions.BusyLoadingError
ConnectionError = exceptions.ConnectionError
DataError = exceptions.DataError
InvalidResponse = exceptions.InvalidResponse
PubSubError = exceptions.PubSubError
ReadOnlyError = exceptions.ReadOnlyError
RedisError = exceptions.RedisError
ResponseError = exceptions.ResponseError
TimeoutError = exceptions.TimeoutError
WatchError = exceptions.WatchError

293
third_party/2.7/redis/client.pyi vendored Normal file
View File

@@ -0,0 +1,293 @@
# Stubs for redis.client (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
SYM_EMPTY = ... # type: Any
def list_or_args(keys, args): ...
def timestamp_to_datetime(response): ...
def string_keys_to_dict(key_string, callback): ...
def dict_merge(*dicts): ...
def parse_debug_object(response): ...
def parse_object(response, infotype): ...
def parse_info(response): ...
SENTINEL_STATE_TYPES = ... # type: Any
def parse_sentinel_state(item): ...
def parse_sentinel_master(response): ...
def parse_sentinel_masters(response): ...
def parse_sentinel_slaves_and_sentinels(response): ...
def parse_sentinel_get_master(response): ...
def pairs_to_dict(response): ...
def pairs_to_dict_typed(response, type_info): ...
def zset_score_pairs(response, **options): ...
def sort_return_tuples(response, **options): ...
def int_or_none(response): ...
def float_or_none(response): ...
def bool_ok(response): ...
def parse_client_list(response, **options): ...
def parse_config_get(response, **options): ...
def parse_scan(response, **options): ...
def parse_hscan(response, **options): ...
def parse_zscan(response, **options): ...
def parse_slowlog_get(response, **options): ...
class StrictRedis:
RESPONSE_CALLBACKS = ... # type: Any
@classmethod
def from_url(cls, url, db=None, **kwargs): ...
connection_pool = ... # type: Any
response_callbacks = ... # type: Any
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, encoding='', encoding_errors='', charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None): ...
def set_response_callback(self, command, callback): ...
def pipeline(self, transaction=True, shard_hint=None): ...
def transaction(self, func, *watches, **kwargs): ...
def lock(self, name, timeout=None, sleep=0.0, blocking_timeout=None, lock_class=None, thread_local=True): ...
def pubsub(self, **kwargs): ...
def execute_command(self, *args, **options): ...
def parse_response(self, connection, command_name, **options): ...
def bgrewriteaof(self): ...
def bgsave(self): ...
def client_kill(self, address): ...
def client_list(self): ...
def client_getname(self): ...
def client_setname(self, name): ...
def config_get(self, pattern=''): ...
def config_set(self, name, value): ...
def config_resetstat(self): ...
def config_rewrite(self): ...
def dbsize(self): ...
def debug_object(self, key): ...
def echo(self, value): ...
def flushall(self): ...
def flushdb(self): ...
def info(self, section=None): ...
def lastsave(self): ...
def object(self, infotype, key): ...
def ping(self): ...
def save(self): ...
def sentinel(self, *args): ...
def sentinel_get_master_addr_by_name(self, service_name): ...
def sentinel_master(self, service_name): ...
def sentinel_masters(self): ...
def sentinel_monitor(self, name, ip, port, quorum): ...
def sentinel_remove(self, name): ...
def sentinel_sentinels(self, service_name): ...
def sentinel_set(self, name, option, value): ...
def sentinel_slaves(self, service_name): ...
def shutdown(self): ...
def slaveof(self, host=None, port=None): ...
def slowlog_get(self, num=None): ...
def slowlog_len(self): ...
def slowlog_reset(self): ...
def time(self): ...
def append(self, key, value): ...
def bitcount(self, key, start=None, end=None): ...
def bitop(self, operation, dest, *keys): ...
def bitpos(self, key, bit, start=None, end=None): ...
def decr(self, name, amount=1): ...
def delete(self, *names): ...
def __delitem__(self, name): ...
def dump(self, name): ...
def exists(self, name): ...
__contains__ = ... # type: Any
def expire(self, name, time): ...
def expireat(self, name, when): ...
def get(self, name): ...
def __getitem__(self, name): ...
def getbit(self, name, offset): ...
def getrange(self, key, start, end): ...
def getset(self, name, value): ...
def incr(self, name, amount=1): ...
def incrby(self, name, amount=1): ...
def incrbyfloat(self, name, amount=0.0): ...
def keys(self, pattern=''): ...
def mget(self, keys, *args): ...
def mset(self, *args, **kwargs): ...
def msetnx(self, *args, **kwargs): ...
def move(self, name, db): ...
def persist(self, name): ...
def pexpire(self, name, time): ...
def pexpireat(self, name, when): ...
def psetex(self, name, time_ms, value): ...
def pttl(self, name): ...
def randomkey(self): ...
def rename(self, src, dst): ...
def renamenx(self, src, dst): ...
def restore(self, name, ttl, value): ...
def set(self, name, value, ex=None, px=None, nx=False, xx=False): ...
def __setitem__(self, name, value): ...
def setbit(self, name, offset, value): ...
def setex(self, name, time, value): ...
def setnx(self, name, value): ...
def setrange(self, name, offset, value): ...
def strlen(self, name): ...
def substr(self, name, start, end=-1): ...
def ttl(self, name): ...
def type(self, name): ...
def watch(self, *names): ...
def unwatch(self): ...
def blpop(self, keys, timeout=0): ...
def brpop(self, keys, timeout=0): ...
def brpoplpush(self, src, dst, timeout=0): ...
def lindex(self, name, index): ...
def linsert(self, name, where, refvalue, value): ...
def llen(self, name): ...
def lpop(self, name): ...
def lpush(self, name, *values): ...
def lpushx(self, name, value): ...
def lrange(self, name, start, end): ...
def lrem(self, name, count, value): ...
def lset(self, name, index, value): ...
def ltrim(self, name, start, end): ...
def rpop(self, name): ...
def rpoplpush(self, src, dst): ...
def rpush(self, name, *values): ...
def rpushx(self, name, value): ...
def sort(self, name, start=None, num=None, by=None, get=None, desc=False, alpha=False, store=None, groups=False): ...
def scan(self, cursor=0, match=None, count=None): ...
def scan_iter(self, match=None, count=None): ...
def sscan(self, name, cursor=0, match=None, count=None): ...
def sscan_iter(self, name, match=None, count=None): ...
def hscan(self, name, cursor=0, match=None, count=None): ...
def hscan_iter(self, name, match=None, count=None): ...
def zscan(self, name, cursor=0, match=None, count=None, score_cast_func=...): ...
def zscan_iter(self, name, match=None, count=None, score_cast_func=...): ...
def sadd(self, name, *values): ...
def scard(self, name): ...
def sdiff(self, keys, *args): ...
def sdiffstore(self, dest, keys, *args): ...
def sinter(self, keys, *args): ...
def sinterstore(self, dest, keys, *args): ...
def sismember(self, name, value): ...
def smembers(self, name): ...
def smove(self, src, dst, value): ...
def spop(self, name): ...
def srandmember(self, name, number=None): ...
def srem(self, name, *values): ...
def sunion(self, keys, *args): ...
def sunionstore(self, dest, keys, *args): ...
def zadd(self, name, *args, **kwargs): ...
def zcard(self, name): ...
def zcount(self, name, min, max): ...
def zincrby(self, name, value, amount=1): ...
def zinterstore(self, dest, keys, aggregate=None): ...
def zlexcount(self, name, min, max): ...
def zrange(self, name, start, end, desc=False, withscores=False, score_cast_func=...): ...
def zrangebylex(self, name, min, max, start=None, num=None): ...
def zrangebyscore(self, name, min, max, start=None, num=None, withscores=False, score_cast_func=...): ...
def zrank(self, name, value): ...
def zrem(self, name, *values): ...
def zremrangebylex(self, name, min, max): ...
def zremrangebyrank(self, name, min, max): ...
def zremrangebyscore(self, name, min, max): ...
def zrevrange(self, name, start, end, withscores=False, score_cast_func=...): ...
def zrevrangebyscore(self, name, max, min, start=None, num=None, withscores=False, score_cast_func=...): ...
def zrevrank(self, name, value): ...
def zscore(self, name, value): ...
def zunionstore(self, dest, keys, aggregate=None): ...
def pfadd(self, name, *values): ...
def pfcount(self, name): ...
def pfmerge(self, dest, *sources): ...
def hdel(self, name, *keys): ...
def hexists(self, name, key): ...
def hget(self, name, key): ...
def hgetall(self, name): ...
def hincrby(self, name, key, amount=1): ...
def hincrbyfloat(self, name, key, amount=0.0): ...
def hkeys(self, name): ...
def hlen(self, name): ...
def hset(self, name, key, value): ...
def hsetnx(self, name, key, value): ...
def hmset(self, name, mapping): ...
def hmget(self, name, keys, *args): ...
def hvals(self, name): ...
def publish(self, channel, message): ...
def eval(self, script, numkeys, *keys_and_args): ...
def evalsha(self, sha, numkeys, *keys_and_args): ...
def script_exists(self, *args): ...
def script_flush(self): ...
def script_kill(self): ...
def script_load(self, script): ...
def register_script(self, script): ...
class Redis(StrictRedis):
RESPONSE_CALLBACKS = ... # type: Any
def pipeline(self, transaction=True, shard_hint=None): ...
def setex(self, name, value, time): ...
def lrem(self, name, value, num=0): ...
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
def __init__(self, connection_pool, shard_hint=None, ignore_subscribe_messages=False): ...
def __del__(self): ...
channels = ... # type: Any
patterns = ... # type: Any
def reset(self): ...
def close(self): ...
def on_connect(self, connection): ...
def encode(self, value): ...
@property
def subscribed(self): ...
def execute_command(self, *args, **kwargs): ...
def parse_response(self, block=True): ...
def psubscribe(self, *args, **kwargs): ...
def punsubscribe(self, *args): ...
def subscribe(self, *args, **kwargs): ...
def unsubscribe(self, *args): ...
def listen(self): ...
def get_message(self, ignore_subscribe_messages=False): ...
def handle_message(self, response, ignore_subscribe_messages=False): ...
def run_in_thread(self, sleep_time=0): ...
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
def __init__(self, connection_pool, response_callbacks, transaction, shard_hint): ...
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
def reset(self): ...
def multi(self): ...
def execute_command(self, *args, **kwargs): ...
def immediate_execute_command(self, *args, **options): ...
def pipeline_execute_command(self, *args, **options): ...
def raise_first_error(self, commands, response): ...
def annotate_exception(self, exception, number, command): ...
def parse_response(self, connection, command_name, **options): ...
def load_scripts(self): ...
def execute(self, raise_on_error=True): ...
def watch(self, *names): ...
def unwatch(self): ...
def script_load_for_pipeline(self, script): ...
class StrictPipeline(BasePipeline, StrictRedis): ...
class Pipeline(BasePipeline, Redis): ...
class Script:
registered_client = ... # type: Any
script = ... # type: Any
sha = ... # type: Any
def __init__(self, registered_client, script): ...
def __call__(self, keys=..., args=..., client=None): ...

135
third_party/2.7/redis/connection.pyi vendored Normal file
View File

@@ -0,0 +1,135 @@
# Stubs for redis.connection (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
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
class Token:
value = ... # type: Any
def __init__(self, value): ...
class BaseParser:
EXCEPTION_CLASSES = ... # type: Any
def parse_error(self, response): ...
class SocketBuffer:
socket_read_size = ... # type: Any
bytes_written = ... # type: Any
bytes_read = ... # type: Any
def __init__(self, socket, socket_read_size): ...
@property
def length(self): ...
def read(self, length): ...
def readline(self): ...
def purge(self): ...
def close(self): ...
class PythonParser(BaseParser):
encoding = ... # type: Any
socket_read_size = ... # type: Any
def __init__(self, socket_read_size): ...
def __del__(self): ...
def on_connect(self, connection): ...
def on_disconnect(self): ...
def can_read(self): ...
def read_response(self): ...
class HiredisParser(BaseParser):
socket_read_size = ... # type: Any
def __init__(self, socket_read_size): ...
def __del__(self): ...
def on_connect(self, connection): ...
def on_disconnect(self): ...
def can_read(self): ...
def read_response(self): ...
DefaultParser = ... # type: 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
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=False, socket_keepalive_options=None, retry_on_timeout=False, encoding='', encoding_errors='', decode_responses=False, parser_class=..., socket_read_size=65536): ...
def __del__(self): ...
def register_connect_callback(self, callback): ...
def clear_connect_callbacks(self): ...
def connect(self): ...
def on_connect(self): ...
def disconnect(self): ...
def send_packed_command(self, command): ...
def send_command(self, *args): ...
def can_read(self): ...
def read_response(self): ...
def encode(self, value): ...
def pack_command(self, *args): ...
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
def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None, **kwargs): ...
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
def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='', encoding_errors='', decode_responses=False, retry_on_timeout=False, parser_class=..., socket_read_size=65536): ...
class ConnectionPool:
@classmethod
def from_url(cls, url, db=None, **kwargs): ...
connection_class = ... # type: Any
connection_kwargs = ... # type: Any
max_connections = ... # type: Any
def __init__(self, connection_class=..., max_connections=None, **connection_kwargs): ...
pid = ... # type: Any
def reset(self): ...
def get_connection(self, command_name, *keys, **options): ...
def make_connection(self): ...
def release(self, connection): ...
def disconnect(self): ...
class BlockingConnectionPool(ConnectionPool):
queue_class = ... # type: Any
timeout = ... # type: Any
def __init__(self, max_connections=50, timeout=20, connection_class=..., queue_class=..., **connection_kwargs): ...
pid = ... # type: Any
pool = ... # type: Any
def reset(self): ...
def make_connection(self): ...
def get_connection(self, command_name, *keys, **options): ...
def release(self, connection): ...
def disconnect(self): ...

21
third_party/2.7/redis/exceptions.pyi vendored Normal file
View File

@@ -0,0 +1,21 @@
# Stubs for redis.exceptions (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class RedisError(Exception): ...
def __unicode__(self): ...
class AuthenticationError(RedisError): ...
class ConnectionError(RedisError): ...
class TimeoutError(RedisError): ...
class BusyLoadingError(ConnectionError): ...
class InvalidResponse(RedisError): ...
class ResponseError(RedisError): ...
class DataError(RedisError): ...
class PubSubError(RedisError): ...
class WatchError(RedisError): ...
class NoScriptError(ResponseError): ...
class ExecAbortError(ResponseError): ...
class ReadOnlyError(ResponseError): ...
class LockError(RedisError, ValueError): ...

12
third_party/2.7/redis/utils.pyi vendored Normal file
View File

@@ -0,0 +1,12 @@
# Stubs for redis.utils (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
HIREDIS_AVAILABLE = ... # type: Any
def from_url(url, db=None, **kwargs): ...
def pipeline(redis_obj): ...
class dummy: ...

38
third_party/2.7/requests/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,38 @@
# Stubs for requests (based on version 2.6.0, Python 3)
from typing import Any
from requests import models
from requests import api
from requests import sessions
from requests import status_codes
from requests import exceptions
import logging
__title__ = ... # type: Any
__build__ = ... # type: Any
__license__ = ... # type: Any
__copyright__ = ... # type: Any
Request = models.Request
Response = models.Response
PreparedRequest = models.PreparedRequest
request = api.request
get = api.get
head = api.head
post = api.post
patch = api.patch
put = api.put
delete = api.delete
options = api.options
session = sessions.session
Session = sessions.Session
codes = status_codes.codes
RequestException = exceptions.RequestException
Timeout = exceptions.Timeout
URLRequired = exceptions.URLRequired
TooManyRedirects = exceptions.TooManyRedirects
HTTPError = exceptions.HTTPError
ConnectionError = exceptions.ConnectionError
class NullHandler(logging.Handler):
def emit(self, record): ...

69
third_party/2.7/requests/adapters.pyi vendored Normal file
View File

@@ -0,0 +1,69 @@
# Stubs for requests.adapters (Python 3)
from typing import Any
from . import models
from .packages.urllib3 import poolmanager
from .packages.urllib3 import response
from .packages.urllib3.util import retry
from . import compat
from . import utils
from . import structures
from .packages.urllib3 import exceptions as urllib3_exceptions
from . import cookies
from . import exceptions
from . import auth
Response = models.Response
PoolManager = poolmanager.PoolManager
proxy_from_url = poolmanager.proxy_from_url
HTTPResponse = response.HTTPResponse
Retry = retry.Retry
DEFAULT_CA_BUNDLE_PATH = utils.DEFAULT_CA_BUNDLE_PATH
get_encoding_from_headers = utils.get_encoding_from_headers
prepend_scheme_if_needed = utils.prepend_scheme_if_needed
get_auth_from_url = utils.get_auth_from_url
urldefragauth = utils.urldefragauth
CaseInsensitiveDict = structures.CaseInsensitiveDict
ConnectTimeoutError = urllib3_exceptions.ConnectTimeoutError
MaxRetryError = urllib3_exceptions.MaxRetryError
ProtocolError = urllib3_exceptions.ProtocolError
ReadTimeoutError = urllib3_exceptions.ReadTimeoutError
ResponseError = urllib3_exceptions.ResponseError
extract_cookies_to_jar = cookies.extract_cookies_to_jar
ConnectionError = exceptions.ConnectionError
ConnectTimeout = exceptions.ConnectTimeout
ReadTimeout = exceptions.ReadTimeout
SSLError = exceptions.SSLError
ProxyError = exceptions.ProxyError
RetryError = exceptions.RetryError
DEFAULT_POOLBLOCK = ... # type: Any
DEFAULT_POOLSIZE = ... # type: Any
DEFAULT_RETRIES = ... # type: Any
class BaseAdapter:
def __init__(self): ...
# TODO: "request" parameter not actually supported, added to please mypy.
def send(self, request=None): ...
def close(self): ...
class HTTPAdapter(BaseAdapter):
__attrs__ = ... # type: Any
max_retries = ... # type: Any
config = ... # type: Any
proxy_manager = ... # type: Any
def __init__(self, pool_connections=..., pool_maxsize=..., max_retries=...,
pool_block=...): ...
poolmanager = ... # type: Any
def init_poolmanager(self, connections, maxsize, block=..., **pool_kwargs): ...
def proxy_manager_for(self, proxy, **proxy_kwargs): ...
def cert_verify(self, conn, url, verify, cert): ...
def build_response(self, req, resp): ...
def get_connection(self, url, proxies=None): ...
def close(self): ...
def request_url(self, request, proxies): ...
def add_headers(self, request, **kwargs): ...
def proxy_headers(self, proxy): ...
# TODO: "request" is not actually optional, modified to please mypy.
def send(self, request=None, stream=False, timeout=None, verify=True, cert=None,
proxies=None): ...

14
third_party/2.7/requests/api.pyi vendored Normal file
View File

@@ -0,0 +1,14 @@
# Stubs for requests.api (Python 3)
import typing
from .models import Response
def request(method: str, url: str, **kwargs) -> Response: ...
def get(url: str, **kwargs) -> Response: ...
def options(url: str, **kwargs) -> Response: ...
def head(url: str, **kwargs) -> Response: ...
def post(url: str, data=None, json=None, **kwargs) -> Response: ...
def put(url: str, data=None, **kwargs) -> Response: ...
def patch(url: str, data=None, **kwargs) -> Response: ...
def delete(url: str, **kwargs) -> Response: ...

41
third_party/2.7/requests/auth.pyi vendored Normal file
View File

@@ -0,0 +1,41 @@
# Stubs for requests.auth (Python 3)
from typing import Any
from . import compat
from . import cookies
from . import utils
from . import status_codes
extract_cookies_to_jar = cookies.extract_cookies_to_jar
parse_dict_header = utils.parse_dict_header
to_native_string = utils.to_native_string
codes = status_codes.codes
CONTENT_TYPE_FORM_URLENCODED = ... # type: Any
CONTENT_TYPE_MULTI_PART = ... # type: Any
class AuthBase:
def __call__(self, r): ...
class HTTPBasicAuth(AuthBase):
username = ... # type: Any
password = ... # type: Any
def __init__(self, username, password): ...
def __call__(self, r): ...
class HTTPProxyAuth(HTTPBasicAuth):
def __call__(self, r): ...
class HTTPDigestAuth(AuthBase):
username = ... # type: Any
password = ... # type: Any
last_nonce = ... # type: Any
nonce_count = ... # type: Any
chal = ... # type: Any
pos = ... # type: Any
num_401_calls = ... # type: Any
def __init__(self, username, password): ...
def build_digest_header(self, method, url): ...
def handle_redirect(self, r, **kwargs): ...
def handle_401(self, r, **kwargs): ...
def __call__(self, r): ...

6
third_party/2.7/requests/compat.pyi vendored Normal file
View File

@@ -0,0 +1,6 @@
# Stubs for requests.compat (Python 3.4)
from typing import Any
import collections
OrderedDict = collections.OrderedDict

61
third_party/2.7/requests/cookies.pyi vendored Normal file
View File

@@ -0,0 +1,61 @@
# Stubs for requests.cookies (Python 3)
from typing import Any, MutableMapping
import collections
from . import compat
class MockRequest:
type = ... # type: Any
def __init__(self, request): ...
def get_type(self): ...
def get_host(self): ...
def get_origin_req_host(self): ...
def get_full_url(self): ...
def is_unverifiable(self): ...
def has_header(self, name): ...
def get_header(self, name, default=None): ...
def add_header(self, key, val): ...
def add_unredirected_header(self, name, value): ...
def get_new_headers(self): ...
@property
def unverifiable(self): ...
@property
def origin_req_host(self): ...
@property
def host(self): ...
class MockResponse:
def __init__(self, headers): ...
def info(self): ...
def getheaders(self, name): ...
def extract_cookies_to_jar(jar, request, response): ...
def get_cookie_header(jar, request): ...
def remove_cookie_by_name(cookiejar, name, domain=None, path=None): ...
class CookieConflictError(RuntimeError): ...
class RequestsCookieJar(MutableMapping):
def get(self, name, default=None, domain=None, path=None): ...
def set(self, name, value, **kwargs): ...
def iterkeys(self): ...
def keys(self): ...
def itervalues(self): ...
def values(self): ...
def iteritems(self): ...
def items(self): ...
def list_domains(self): ...
def list_paths(self): ...
def multiple_domains(self): ...
def get_dict(self, domain=None, path=None): ...
def __getitem__(self, name): ...
def __setitem__(self, name, value): ...
def __delitem__(self, name): ...
def set_cookie(self, cookie, *args, **kwargs): ...
def update(self, other): ...
def copy(self): ...
def create_cookie(name, value, **kwargs): ...
def morsel_to_cookie(morsel): ...
def cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True): ...
def merge_cookies(cookiejar, cookies): ...

26
third_party/2.7/requests/exceptions.pyi vendored Normal file
View File

@@ -0,0 +1,26 @@
# Stubs for requests.exceptions (Python 3)
from typing import Any
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
class RequestException(IOError):
response = ... # type: Any
request = ... # type: Any
def __init__(self, *args, **kwargs): ...
class HTTPError(RequestException): ...
class ConnectionError(RequestException): ...
class ProxyError(ConnectionError): ...
class SSLError(ConnectionError): ...
class Timeout(RequestException): ...
class ConnectTimeout(ConnectionError, Timeout): ...
class ReadTimeout(Timeout): ...
class URLRequired(RequestException): ...
class TooManyRedirects(RequestException): ...
class MissingSchema(RequestException, ValueError): ...
class InvalidSchema(RequestException, ValueError): ...
class InvalidURL(RequestException, ValueError): ...
class ChunkedEncodingError(RequestException): ...
class ContentDecodingError(RequestException, BaseHTTPError): ...
class StreamConsumedError(RequestException, TypeError): ...
class RetryError(RequestException): ...

8
third_party/2.7/requests/hooks.pyi vendored Normal file
View File

@@ -0,0 +1,8 @@
# Stubs for requests.hooks (Python 3)
from typing import Any
HOOKS = ... # type: Any
def default_hooks(): ...
def dispatch_hook(key, hooks, hook_data, **kwargs): ...

133
third_party/2.7/requests/models.pyi vendored Normal file
View File

@@ -0,0 +1,133 @@
# Stubs for requests.models (Python 3)
from typing import Any, List, MutableMapping, Iterator, Dict
import datetime
from . import hooks
from . import structures
from . import auth
from . import cookies
from .cookies import RequestsCookieJar
from .packages.urllib3 import fields
from .packages.urllib3 import filepost
from .packages.urllib3 import util
from .packages.urllib3 import exceptions as urllib3_exceptions
from . import exceptions
from . import utils
from . import compat
from . import status_codes
default_hooks = hooks.default_hooks
CaseInsensitiveDict = structures.CaseInsensitiveDict
HTTPBasicAuth = auth.HTTPBasicAuth
cookiejar_from_dict = cookies.cookiejar_from_dict
get_cookie_header = cookies.get_cookie_header
RequestField = fields.RequestField
encode_multipart_formdata = filepost.encode_multipart_formdata
DecodeError = urllib3_exceptions.DecodeError
ReadTimeoutError = urllib3_exceptions.ReadTimeoutError
ProtocolError = urllib3_exceptions.ProtocolError
LocationParseError = urllib3_exceptions.LocationParseError
HTTPError = exceptions.HTTPError
MissingSchema = exceptions.MissingSchema
InvalidURL = exceptions.InvalidURL
ChunkedEncodingError = exceptions.ChunkedEncodingError
ContentDecodingError = exceptions.ContentDecodingError
ConnectionError = exceptions.ConnectionError
StreamConsumedError = exceptions.StreamConsumedError
guess_filename = utils.guess_filename
get_auth_from_url = utils.get_auth_from_url
requote_uri = utils.requote_uri
stream_decode_response_unicode = utils.stream_decode_response_unicode
to_key_val_list = utils.to_key_val_list
parse_header_links = utils.parse_header_links
iter_slices = utils.iter_slices
guess_json_utf = utils.guess_json_utf
super_len = utils.super_len
to_native_string = utils.to_native_string
codes = status_codes.codes
REDIRECT_STATI = ... # type: Any
DEFAULT_REDIRECT_LIMIT = ... # type: Any
CONTENT_CHUNK_SIZE = ... # type: Any
ITER_CHUNK_SIZE = ... # type: Any
json_dumps = ... # type: Any
class RequestEncodingMixin:
@property
def path_url(self): ...
class RequestHooksMixin:
def register_hook(self, event, hook): ...
def deregister_hook(self, event, hook): ...
class Request(RequestHooksMixin):
hooks = ... # type: Any
method = ... # type: Any
url = ... # type: Any
headers = ... # type: Any
files = ... # type: Any
data = ... # type: Any
json = ... # type: Any
params = ... # type: Any
auth = ... # type: Any
cookies = ... # type: Any
def __init__(self, method=None, url=None, headers=None, files=None, data=None, params=None,
auth=None, cookies=None, hooks=None, json=None): ...
def prepare(self): ...
class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
method = ... # type: Any
url = ... # type: Any
headers = ... # type: Any
body = ... # type: Any
hooks = ... # type: Any
def __init__(self): ...
def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None,
auth=None, cookies=None, hooks=None, json=None): ...
def copy(self): ...
def prepare_method(self, method): ...
def prepare_url(self, url, params): ...
def prepare_headers(self, headers): ...
def prepare_body(self, data, files, json=None): ...
def prepare_content_length(self, body): ...
def prepare_auth(self, auth, url=''): ...
def prepare_cookies(self, cookies): ...
def prepare_hooks(self, hooks): ...
class Response:
__attrs__ = ... # type: Any
status_code = ... # type: int
headers = ... # type: MutableMapping[str, str]
raw = ... # type: Any
url = ... # type: str
encoding = ... # type: str
history = ... # type: List[Response]
reason = ... # type: str
cookies = ... # type: RequestsCookieJar
elapsed = ... # type: datetime.timedelta
request = ... # type: PreparedRequest
def __init__(self) -> None: ...
def __bool__(self) -> bool: ...
def __nonzero__(self) -> bool: ...
def __iter__(self) -> Iterator[str]: ...
@property
def ok(self) -> bool: ...
@property
def is_redirect(self) -> bool: ...
@property
def is_permanent_redirect(self) -> bool: ...
@property
def apparent_encoding(self) -> str: ...
def iter_content(self, chunk_size: int = 1,
decode_unicode: bool = False) -> Iterator[Any]: ...
def iter_lines(self, chunk_size=..., decode_unicode=None, delimiter=None): ...
@property
def content(self) -> str: ...
@property
def text(self) -> str: ...
def json(self, **kwargs) -> Any: ...
@property
def links(self) -> Dict[Any, Any]: ...
def raise_for_status(self) -> None: ...
def close(self) -> None: ...

View File

@@ -0,0 +1,8 @@
# Stubs for requests.packages (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class VendorAlias:
def __init__(self, package_names): ...
def find_module(self, fullname, path=None): ...
def load_module(self, name): ...

View File

@@ -0,0 +1,12 @@
# Stubs for requests.packages.urllib3 (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import logging
class NullHandler(logging.Handler):
def emit(self, record): ...
def add_stderr_logger(level=...): ...
def disable_warnings(category=...): ...

View File

@@ -0,0 +1,51 @@
# Stubs for requests.packages.urllib3._collections (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from collections import MutableMapping
class RLock:
def __enter__(self): ...
def __exit__(self, exc_type, exc_value, traceback): ...
class RecentlyUsedContainer(MutableMapping):
ContainerCls = ... # type: Any
dispose_func = ... # type: Any
lock = ... # type: Any
def __init__(self, maxsize=10, dispose_func=None): ...
def __getitem__(self, key): ...
def __setitem__(self, key, value): ...
def __delitem__(self, key): ...
def __len__(self): ...
def __iter__(self): ...
def clear(self): ...
def keys(self): ...
class HTTPHeaderDict(dict):
def __init__(self, headers=None, **kwargs): ...
def __setitem__(self, key, val): ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __contains__(self, key): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
values = ... # type: Any
get = ... # type: Any
update = ... # type: Any
iterkeys = ... # type: Any
itervalues = ... # type: Any
def pop(self, key, default=...): ...
def discard(self, key): ...
def add(self, key, val): ...
def extend(*args, **kwargs): ...
def getlist(self, key): ...
getheaders = ... # type: Any
getallmatchingheaders = ... # type: Any
iget = ... # type: Any
def copy(self): ...
def iteritems(self): ...
def itermerged(self): ...
def items(self): ...
@classmethod
def from_httplib(cls, message, duplicates=...): ...

View File

@@ -0,0 +1,48 @@
# Stubs for requests.packages.urllib3.connection (Python 3.4)
from typing import Any
from . import packages
from . import exceptions
from . import util
class DummyConnection: ...
ConnectTimeoutError = exceptions.ConnectTimeoutError
SystemTimeWarning = exceptions.SystemTimeWarning
SecurityWarning = exceptions.SecurityWarning
port_by_scheme = ... # type: Any
RECENT_DATE = ... # type: Any
class HTTPConnection(object):
default_port = ... # type: Any
default_socket_options = ... # type: Any
is_verified = ... # type: Any
source_address = ... # type: Any
socket_options = ... # type: Any
def __init__(self, *args, **kw): ...
def connect(self): ...
class HTTPSConnection(HTTPConnection):
default_port = ... # type: Any
key_file = ... # type: Any
cert_file = ... # type: Any
def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw): ...
sock = ... # type: Any
def connect(self): ...
class VerifiedHTTPSConnection(HTTPSConnection):
cert_reqs = ... # type: Any
ca_certs = ... # type: Any
ssl_version = ... # type: Any
assert_fingerprint = ... # type: Any
key_file = ... # type: Any
cert_file = ... # type: Any
assert_hostname = ... # type: Any
def set_cert(self, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, assert_hostname=None, assert_fingerprint=None): ...
sock = ... # type: Any
auto_open = ... # type: Any
is_verified = ... # type: Any
def connect(self): ...
UnverifiedHTTPSConnection = ... # type: Any

View File

@@ -0,0 +1,87 @@
# Stubs for requests.packages.urllib3.connectionpool (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from . import exceptions
from .packages import ssl_match_hostname
from . import packages
from . import connection
from . import request
from . import response
from .util import connection as _connection
from .util import retry
from .util import timeout
from .util import url
ClosedPoolError = exceptions.ClosedPoolError
ProtocolError = exceptions.ProtocolError
EmptyPoolError = exceptions.EmptyPoolError
HostChangedError = exceptions.HostChangedError
LocationValueError = exceptions.LocationValueError
MaxRetryError = exceptions.MaxRetryError
ProxyError = exceptions.ProxyError
ReadTimeoutError = exceptions.ReadTimeoutError
SSLError = exceptions.SSLError
TimeoutError = exceptions.TimeoutError
InsecureRequestWarning = exceptions.InsecureRequestWarning
CertificateError = ssl_match_hostname.CertificateError
port_by_scheme = connection.port_by_scheme
DummyConnection = connection.DummyConnection
HTTPConnection = connection.HTTPConnection
HTTPSConnection = connection.HTTPSConnection
VerifiedHTTPSConnection = connection.VerifiedHTTPSConnection
HTTPException = connection.HTTPException
BaseSSLError = connection.BaseSSLError
ConnectionError = connection.ConnectionError
RequestMethods = request.RequestMethods
HTTPResponse = response.HTTPResponse
is_connection_dropped = _connection.is_connection_dropped
Retry = retry.Retry
Timeout = timeout.Timeout
get_host = url.get_host
xrange = ... # type: Any
log = ... # type: Any
class ConnectionPool:
scheme = ... # type: Any
QueueCls = ... # type: Any
host = ... # type: Any
port = ... # type: Any
def __init__(self, host, port=None): ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_val, exc_tb): ...
def close(self): ...
class HTTPConnectionPool(ConnectionPool, RequestMethods):
scheme = ... # type: Any
ConnectionCls = ... # type: Any
strict = ... # type: Any
timeout = ... # type: Any
retries = ... # type: Any
pool = ... # type: Any
block = ... # type: Any
proxy = ... # type: Any
proxy_headers = ... # type: Any
num_connections = ... # type: Any
num_requests = ... # type: Any
conn_kw = ... # type: Any
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw): ...
def close(self): ...
def is_same_host(self, url): ...
def urlopen(self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=..., pool_timeout=None, release_conn=None, **response_kw): ...
class HTTPSConnectionPool(HTTPConnectionPool):
scheme = ... # type: Any
ConnectionCls = ... # type: Any
key_file = ... # type: Any
cert_file = ... # type: Any
cert_reqs = ... # type: Any
ca_certs = ... # type: Any
ssl_version = ... # type: Any
assert_hostname = ... # type: Any
assert_fingerprint = ... # type: Any
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw): ...
def connection_from_url(url, **kw): ...

View File

@@ -0,0 +1,4 @@
# Stubs for requests.packages.urllib3.contrib (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

View File

@@ -0,0 +1,54 @@
# Stubs for requests.packages.urllib3.exceptions (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class HTTPError(Exception): ...
class HTTPWarning(Warning): ...
class PoolError(HTTPError):
pool = ... # type: Any
def __init__(self, pool, message): ...
def __reduce__(self): ...
class RequestError(PoolError):
url = ... # type: Any
def __init__(self, pool, url, message): ...
def __reduce__(self): ...
class SSLError(HTTPError): ...
class ProxyError(HTTPError): ...
class DecodeError(HTTPError): ...
class ProtocolError(HTTPError): ...
ConnectionError = ... # type: Any
class MaxRetryError(RequestError):
reason = ... # type: Any
def __init__(self, pool, url, reason=None): ...
class HostChangedError(RequestError):
retries = ... # type: Any
def __init__(self, pool, url, retries=3): ...
class TimeoutStateError(HTTPError): ...
class TimeoutError(HTTPError): ...
class ReadTimeoutError(TimeoutError, RequestError): ...
class ConnectTimeoutError(TimeoutError): ...
class EmptyPoolError(PoolError): ...
class ClosedPoolError(PoolError): ...
class LocationValueError(ValueError, HTTPError): ...
class LocationParseError(LocationValueError):
location = ... # type: Any
def __init__(self, location): ...
class ResponseError(HTTPError):
GENERIC_ERROR = ... # type: Any
SPECIFIC_ERROR = ... # type: Any
class SecurityWarning(HTTPWarning): ...
class InsecureRequestWarning(SecurityWarning): ...
class SystemTimeWarning(SecurityWarning): ...
class InsecurePlatformWarning(SecurityWarning): ...

View File

@@ -0,0 +1,16 @@
# Stubs for requests.packages.urllib3.fields (Python 3.4)
from typing import Any
from . import packages
def guess_content_type(filename, default=''): ...
def format_header_param(name, value): ...
class RequestField:
data = ... # type: Any
headers = ... # type: Any
def __init__(self, name, data, filename=None, headers=None): ...
@classmethod
def from_tuples(cls, fieldname, value): ...
def render_headers(self): ...
def make_multipart(self, content_disposition=None, content_type=None, content_location=None): ...

View File

@@ -0,0 +1,19 @@
# Stubs for requests.packages.urllib3.filepost (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from . import packages
#from .packages import six
from . import fields
#six = packages.six
#b = six.b
RequestField = fields.RequestField
writer = ... # type: Any
def choose_boundary(): ...
def iter_field_objects(fields): ...
def iter_fields(fields): ...
def encode_multipart_formdata(fields, boundary=None): ...

View File

@@ -0,0 +1,4 @@
# Stubs for requests.packages.urllib3.packages (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

View File

@@ -0,0 +1,7 @@
# Stubs for requests.packages.urllib3.packages.ssl_match_hostname._implementation (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
class CertificateError(ValueError): ...
def match_hostname(cert, hostname): ...

View File

@@ -0,0 +1,31 @@
# Stubs for requests.packages.urllib3.poolmanager (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .request import RequestMethods
class PoolManager(RequestMethods):
proxy = ... # type: Any
connection_pool_kw = ... # type: Any
pools = ... # type: Any
def __init__(self, num_pools=10, headers=None, **connection_pool_kw): ...
def __enter__(self): ...
def __exit__(self, exc_type, exc_val, exc_tb): ...
def clear(self): ...
def connection_from_host(self, host, port=None, scheme=''): ...
def connection_from_url(self, url): ...
# TODO: This was the original signature -- copied another one from base class to fix complaint.
# def urlopen(self, method, url, redirect=True, **kw): ...
def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ...
class ProxyManager(PoolManager):
proxy = ... # type: Any
proxy_headers = ... # type: Any
def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw): ...
def connection_from_host(self, host, port=None, scheme=''): ...
# TODO: This was the original signature -- copied another one from base class to fix complaint.
# def urlopen(self, method, url, redirect=True, **kw): ...
def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ...
def proxy_from_url(url, **kw): ...

View File

@@ -0,0 +1,13 @@
# Stubs for requests.packages.urllib3.request (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class RequestMethods:
headers = ... # type: Any
def __init__(self, headers=None): ...
def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ...
def request(self, method, url, fields=None, headers=None, **urlopen_kw): ...
def request_encode_url(self, method, url, fields=None, **urlopen_kw): ...
def request_encode_body(self, method, url, fields=None, headers=None, encode_multipart=True, multipart_boundary=None, **urlopen_kw): ...

View File

@@ -0,0 +1,58 @@
# Stubs for requests.packages.urllib3.response (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, IO
import io
from . import _collections
from . import exceptions
#from .packages import six
from . import connection
from .util import response
HTTPHeaderDict = _collections.HTTPHeaderDict
ProtocolError = exceptions.ProtocolError
DecodeError = exceptions.DecodeError
ReadTimeoutError = exceptions.ReadTimeoutError
binary_type = str # six.binary_type
PY3 = True # six.PY3
is_fp_closed = response.is_fp_closed
class DeflateDecoder:
def __init__(self): ...
def __getattr__(self, name): ...
def decompress(self, data): ...
class GzipDecoder:
def __init__(self): ...
def __getattr__(self, name): ...
def decompress(self, data): ...
class HTTPResponse(IO[Any]):
CONTENT_DECODERS = ... # type: Any
REDIRECT_STATUSES = ... # type: Any
headers = ... # type: Any
status = ... # type: Any
version = ... # type: Any
reason = ... # type: Any
strict = ... # type: Any
decode_content = ... # type: Any
def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None): ...
def get_redirect_location(self): ...
def release_conn(self): ...
@property
def data(self): ...
def tell(self): ...
def read(self, amt=None, decode_content=None, cache_content=False): ...
def stream(self, amt=..., decode_content=None): ...
@classmethod
def from_httplib(ResponseCls, r, **response_kw): ...
def getheaders(self): ...
def getheader(self, name, default=None): ...
def close(self): ...
@property
def closed(self): ...
def fileno(self): ...
def flush(self): ...
def readable(self): ...
def readinto(self, b): ...

View File

@@ -0,0 +1,7 @@
# Stubs for requests.packages.urllib3.util (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from . import connection
from . import request

View File

@@ -0,0 +1,11 @@
# Stubs for requests.packages.urllib3.util.connection (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
poll = ... # type: Any
select = ... # type: Any
def is_connection_dropped(conn): ...
def create_connection(address, timeout=..., source_address=None, socket_options=None): ...

View File

@@ -0,0 +1,12 @@
# Stubs for requests.packages.urllib3.util.request (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
#from ..packages import six
#b = six.b
ACCEPT_ENCODING = ... # type: Any
def make_headers(keep_alive=None, accept_encoding=None, user_agent=None, basic_auth=None, proxy_basic_auth=None, disable_cache=None): ...

View File

@@ -0,0 +1,5 @@
# Stubs for requests.packages.urllib3.util.response (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def is_fp_closed(obj): ...

View File

@@ -0,0 +1,36 @@
# Stubs for requests.packages.urllib3.util.retry (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .. import exceptions
from .. import packages
ConnectTimeoutError = exceptions.ConnectTimeoutError
MaxRetryError = exceptions.MaxRetryError
ProtocolError = exceptions.ProtocolError
ReadTimeoutError = exceptions.ReadTimeoutError
ResponseError = exceptions.ResponseError
log = ... # type: Any
class Retry:
DEFAULT_METHOD_WHITELIST = ... # type: Any
BACKOFF_MAX = ... # type: Any
total = ... # type: Any
connect = ... # type: Any
read = ... # type: Any
redirect = ... # type: Any
status_forcelist = ... # type: Any
method_whitelist = ... # type: Any
backoff_factor = ... # type: Any
raise_on_redirect = ... # type: Any
def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0): ...
def new(self, **kw): ...
@classmethod
def from_int(cls, retries, redirect=True, default=None): ...
def get_backoff_time(self): ...
def sleep(self): ...
def is_forced_retry(self, method, status_code): ...
def is_exhausted(self): ...
def increment(self, method=None, url=None, response=None, error=None, _pool=None, _stacktrace=None): ...

View File

@@ -0,0 +1,24 @@
# Stubs for requests.packages.urllib3.util.timeout (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .. import exceptions
TimeoutStateError = exceptions.TimeoutStateError
def current_time(): ...
class Timeout:
DEFAULT_TIMEOUT = ... # type: Any
total = ... # type: Any
def __init__(self, total=None, connect=..., read=...): ...
@classmethod
def from_float(cls, timeout): ...
def clone(self): ...
def start_connect(self): ...
def get_connect_duration(self): ...
@property
def connect_timeout(self): ...
@property
def read_timeout(self): ...

View File

@@ -0,0 +1,26 @@
# Stubs for requests.packages.urllib3.util.url (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .. import exceptions
LocationParseError = exceptions.LocationParseError
url_attrs = ... # type: Any
class Url:
slots = ... # type: Any
def __new__(cls, scheme=None, auth=None, host=None, port=None, path=None, query=None, fragment=None): ...
@property
def hostname(self): ...
@property
def request_uri(self): ...
@property
def netloc(self): ...
@property
def url(self): ...
def split_first(s, delims): ...
def parse_url(url): ...
def get_host(url): ...

92
third_party/2.7/requests/sessions.pyi vendored Normal file
View File

@@ -0,0 +1,92 @@
# Stubs for requests.sessions (Python 3)
from typing import Any, Union, MutableMapping
from . import auth
from . import compat
from . import cookies
from . import models
from .models import Response
from . import hooks
from . import utils
from . import exceptions
from .packages.urllib3 import _collections
from . import structures
from . import adapters
from . import status_codes
OrderedDict = compat.OrderedDict
cookiejar_from_dict = cookies.cookiejar_from_dict
extract_cookies_to_jar = cookies.extract_cookies_to_jar
RequestsCookieJar = cookies.RequestsCookieJar
merge_cookies = cookies.merge_cookies
Request = models.Request
PreparedRequest = models.PreparedRequest
DEFAULT_REDIRECT_LIMIT = models.DEFAULT_REDIRECT_LIMIT
default_hooks = hooks.default_hooks
dispatch_hook = hooks.dispatch_hook
to_key_val_list = utils.to_key_val_list
default_headers = utils.default_headers
to_native_string = utils.to_native_string
TooManyRedirects = exceptions.TooManyRedirects
InvalidSchema = exceptions.InvalidSchema
ChunkedEncodingError = exceptions.ChunkedEncodingError
ContentDecodingError = exceptions.ContentDecodingError
RecentlyUsedContainer = _collections.RecentlyUsedContainer
CaseInsensitiveDict = structures.CaseInsensitiveDict
HTTPAdapter = adapters.HTTPAdapter
requote_uri = utils.requote_uri
get_environ_proxies = utils.get_environ_proxies
get_netrc_auth = utils.get_netrc_auth
should_bypass_proxies = utils.should_bypass_proxies
get_auth_from_url = utils.get_auth_from_url
codes = status_codes.codes
REDIRECT_STATI = models.REDIRECT_STATI
REDIRECT_CACHE_SIZE = ... # type: Any
def merge_setting(request_setting, session_setting, dict_class=...): ...
def merge_hooks(request_hooks, session_hooks, dict_class=...): ...
class SessionRedirectMixin:
def resolve_redirects(self, resp, req, stream=False, timeout=None, verify=True, cert=None,
proxies=None): ...
def rebuild_auth(self, prepared_request, response): ...
def rebuild_proxies(self, prepared_request, proxies): ...
class Session(SessionRedirectMixin):
__attrs__ = ... # type: Any
headers = ... # type: MutableMapping[str, str]
auth = ... # type: Any
proxies = ... # type: Any
hooks = ... # type: Any
params = ... # type: Any
stream = ... # type: Any
verify = ... # type: Any
cert = ... # type: Any
max_redirects = ... # type: Any
trust_env = ... # type: Any
cookies = ... # type: Any
adapters = ... # type: Any
redirect_cache = ... # type: Any
def __init__(self) -> None: ...
def __enter__(self) -> 'Session': ...
def __exit__(self, *args) -> None: ...
def prepare_request(self, request): ...
def request(self, method: str, url: str, params=None, data=None, headers=None,
cookies=None, files=None, auth=None, timeout=None, allow_redirects=True,
proxies=None, hooks=None, stream=None, verify=None, cert=None,
json=None) -> Response: ...
def get(self, url: str, **kwargs) -> Response: ...
def options(self, url: str, **kwargs) -> Response: ...
def head(self, url: str, **kwargs) -> Response: ...
def post(self, url: str, data=None, json=None, **kwargs) -> Response: ...
def put(self, url: str, data=None, **kwargs) -> Response: ...
def patch(self, url: str, data=None, **kwargs) -> Response: ...
def delete(self, url: str, **kwargs) -> Response: ...
def send(self, request, **kwargs): ...
def merge_environment_settings(self, url, proxies, stream, verify, cert): ...
def get_adapter(self, url): ...
def close(self) -> None: ...
def mount(self, prefix, adapter): ...
def session() -> Session: ...

View File

@@ -0,0 +1,8 @@
# Stubs for requests.status_codes (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .structures import LookupDict
codes = ... # type: Any

21
third_party/2.7/requests/structures.pyi vendored Normal file
View File

@@ -0,0 +1,21 @@
# Stubs for requests.structures (Python 3)
from typing import Any
import collections
class CaseInsensitiveDict(collections.MutableMapping):
def __init__(self, data=None, **kwargs): ...
def __setitem__(self, key, value): ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __iter__(self): ...
def __len__(self): ...
def lower_items(self): ...
def __eq__(self, other): ...
def copy(self): ...
class LookupDict(dict):
name = ... # type: Any
def __init__(self, name=None): ...
def __getitem__(self, key): ...
def get(self, key, default=None): ...

52
third_party/2.7/requests/utils.pyi vendored Normal file
View File

@@ -0,0 +1,52 @@
# Stubs for requests.utils (Python 3)
from typing import Any
from . import compat
from . import cookies
from . import structures
from . import exceptions
OrderedDict = compat.OrderedDict
RequestsCookieJar = cookies.RequestsCookieJar
cookiejar_from_dict = cookies.cookiejar_from_dict
CaseInsensitiveDict = structures.CaseInsensitiveDict
InvalidURL = exceptions.InvalidURL
NETRC_FILES = ... # type: Any
DEFAULT_CA_BUNDLE_PATH = ... # type: Any
def dict_to_sequence(d): ...
def super_len(o): ...
def get_netrc_auth(url): ...
def guess_filename(obj): ...
def from_key_val_list(value): ...
def to_key_val_list(value): ...
def parse_list_header(value): ...
def parse_dict_header(value): ...
def unquote_header_value(value, is_filename=False): ...
def dict_from_cookiejar(cj): ...
def add_dict_to_cookiejar(cj, cookie_dict): ...
def get_encodings_from_content(content): ...
def get_encoding_from_headers(headers): ...
def stream_decode_response_unicode(iterator, r): ...
def iter_slices(string, slice_length): ...
def get_unicode_from_response(r): ...
UNRESERVED_SET = ... # type: Any
def unquote_unreserved(uri): ...
def requote_uri(uri): ...
def address_in_network(ip, net): ...
def dotted_netmask(mask): ...
def is_ipv4_address(string_ip): ...
def is_valid_cidr(string_network): ...
def should_bypass_proxies(url): ...
def get_environ_proxies(url): ...
def default_user_agent(name=''): ...
def default_headers(): ...
def parse_header_links(value): ...
def guess_json_utf(data): ...
def prepend_scheme_if_needed(url, new_scheme): ...
def get_auth_from_url(url): ...
def to_native_string(string, encoding=''): ...
def urldefragauth(url): ...

19
third_party/2.7/routes/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,19 @@
# Stubs for routes (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import routes.mapper
import routes.util
class _RequestConfig:
def __getattr__(self, name): ...
def __setattr__(self, name, value): ...
def __delattr__(self, name): ...
def load_wsgi_environ(self, environ): ...
def request_config(original=False): ...
Mapper = mapper.Mapper
redirect_to = util.redirect_to
url_for = util.url_for
URLGenerator = util.URLGenerator

70
third_party/2.7/routes/mapper.pyi vendored Normal file
View File

@@ -0,0 +1,70 @@
# Stubs for routes.mapper (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
COLLECTION_ACTIONS = ... # type: Any
MEMBER_ACTIONS = ... # type: Any
def strip_slashes(name): ...
class SubMapperParent:
def submapper(self, **kargs): ...
def collection(self, collection_name, resource_name, path_prefix=None, member_prefix='', controller=None, collection_actions=..., member_actions=..., member_options=None, **kwargs): ...
class SubMapper(SubMapperParent):
kwargs = ... # type: Any
obj = ... # type: Any
collection_name = ... # type: Any
member = ... # type: Any
resource_name = ... # type: Any
formatted = ... # type: Any
def __init__(self, obj, resource_name=None, collection_name=None, actions=None, formatted=None, **kwargs): ...
def connect(self, *args, **kwargs): ...
def link(self, rel=None, name=None, action=None, method='', formatted=None, **kwargs): ...
def new(self, **kwargs): ...
def edit(self, **kwargs): ...
def action(self, name=None, action=None, method='', formatted=None, **kwargs): ...
def index(self, name=None, **kwargs): ...
def show(self, name=None, **kwargs): ...
def create(self, **kwargs): ...
def update(self, **kwargs): ...
def delete(self, **kwargs): ...
def add_actions(self, actions): ...
def __enter__(self): ...
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
def __init__(self, controller_scan=..., directory=None, always_scan=False, register=True, explicit=True): ...
environ = ... # type: 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=None, environ=None): ...
def routematch(self, url=None, environ=None): ...
obj = ... # type: Any
def generate(self, *args, **kargs): ...
def resource(self, member_name, collection_name, **kwargs): ...
def redirect(self, match_path, destination_path, *args, **kwargs): ...

24
third_party/2.7/routes/util.pyi vendored Normal file
View File

@@ -0,0 +1,24 @@
# Stubs for routes.util (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class RoutesException(Exception): ...
class MatchException(RoutesException): ...
class GenerationException(RoutesException): ...
def url_for(*args, **kargs): ...
class URLGenerator:
mapper = ... # type: Any
environ = ... # type: Any
def __init__(self, mapper, environ): ...
def __call__(self, *args, **kargs): ...
def current(self, *args, **kwargs): ...
def redirect_to(*args, **kargs): ...
def cache_hostinfo(environ): ...
def controller_scan(directory=None): ...
def as_unicode(value, encoding, errors=''): ...
def ascii_characters(string): ...

0
third_party/2.7/scribe/__init__.pyi vendored Normal file
View File

41
third_party/2.7/scribe/scribe.pyi vendored Normal file
View File

@@ -0,0 +1,41 @@
# Stubs for scribe.scribe (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
import fb303.FacebookService
from .ttypes import *
from thrift.Thrift import TProcessor
class Iface(fb303.FacebookService.Iface):
def Log(self, messages): ...
class Client(fb303.FacebookService.Client, Iface):
def __init__(self, iprot, oprot=None): ...
def Log(self, messages): ...
def send_Log(self, messages): ...
def recv_Log(self): ...
class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
def __init__(self, handler): ...
def process(self, iprot, oprot): ...
def process_Log(self, seqid, iprot, oprot): ...
class Log_args:
thrift_spec = ... # type: Any
messages = ... # type: Any
def __init__(self, messages=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class Log_result:
thrift_spec = ... # type: Any
success = ... # type: Any
def __init__(self, success=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...

22
third_party/2.7/scribe/ttypes.pyi vendored Normal file
View File

@@ -0,0 +1,22 @@
# Stubs for scribe.ttypes (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
fastbinary = ... # type: Any
class ResultCode:
OK = ... # type: Any
TRY_LATER = ... # type: Any
class LogEntry:
thrift_spec = ... # type: Any
category = ... # type: Any
message = ... # type: Any
def __init__(self, category=None, message=None): ...
def read(self, iprot): ...
def write(self, oprot): ...
def validate(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...

113
third_party/2.7/sqlalchemy/__init__.pyi vendored Normal file
View File

@@ -0,0 +1,113 @@
# Stubs for sqlalchemy (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from sqlalchemy import sql
from sqlalchemy import types
from sqlalchemy import schema
from sqlalchemy import inspection
from sqlalchemy import engine
alias = sql.alias
and_ = sql.and_
asc = sql.asc
between = sql.between
bindparam = sql.bindparam
case = sql.case
cast = sql.cast
collate = sql.collate
column = sql.column
delete = sql.delete
desc = sql.desc
distinct = sql.distinct
except_ = sql.except_
except_all = sql.except_all
exists = sql.exists
extract = sql.extract
false = sql.false
func = sql.func
funcfilter = sql.funcfilter
insert = sql.insert
intersect = sql.intersect
intersect_all = sql.intersect_all
join = sql.join
literal = sql.literal
literal_column = sql.literal_column
modifier = sql.modifier
not_ = sql.not_
null = sql.null
or_ = sql.or_
outerjoin = sql.outerjoin
outparam = sql.outparam
over = sql.over
select = sql.select
subquery = sql.subquery
table = sql.table
text = sql.text
true = sql.true
tuple_ = sql.tuple_
type_coerce = sql.type_coerce
union = sql.union
union_all = sql.union_all
update = sql.update
BIGINT = types.BIGINT
BINARY = types.BINARY
BLOB = types.BLOB
BOOLEAN = types.BOOLEAN
BigInteger = types.BigInteger
Binary = types.Binary
Boolean = types.Boolean
CHAR = types.CHAR
CLOB = types.CLOB
DATE = types.DATE
DATETIME = types.DATETIME
DECIMAL = types.DECIMAL
Date = types.Date
DateTime = types.DateTime
Enum = types.Enum
FLOAT = types.FLOAT
Float = types.Float
INT = types.INT
INTEGER = types.INTEGER
Integer = types.Integer
Interval = types.Interval
LargeBinary = types.LargeBinary
NCHAR = types.NCHAR
NVARCHAR = types.NVARCHAR
NUMERIC = types.NUMERIC
Numeric = types.Numeric
PickleType = types.PickleType
REAL = types.REAL
SMALLINT = types.SMALLINT
SmallInteger = types.SmallInteger
String = types.String
TEXT = types.TEXT
TIME = types.TIME
TIMESTAMP = types.TIMESTAMP
Text = types.Text
Time = types.Time
TypeDecorator = types.TypeDecorator
Unicode = types.Unicode
UnicodeText = types.UnicodeText
VARBINARY = types.VARBINARY
VARCHAR = types.VARCHAR
CheckConstraint = schema.CheckConstraint
Column = schema.Column
ColumnDefault = schema.ColumnDefault
Constraint = schema.Constraint
DefaultClause = schema.DefaultClause
FetchedValue = schema.FetchedValue
ForeignKey = schema.ForeignKey
ForeignKeyConstraint = schema.ForeignKeyConstraint
Index = schema.Index
MetaData = schema.MetaData
PassiveDefault = schema.PassiveDefault
PrimaryKeyConstraint = schema.PrimaryKeyConstraint
Sequence = schema.Sequence
Table = schema.Table
ThreadLocalMetaData = schema.ThreadLocalMetaData
UniqueConstraint = schema.UniqueConstraint
DDL = schema.DDL
inspect = inspection.inspect
create_engine = engine.create_engine
engine_from_config = engine.engine_from_config

View File

@@ -0,0 +1,12 @@
# Stubs for sqlalchemy.databases (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# Names in __all__ with no definition:
# firebird
# mssql
# mysql
# oracle
# postgresql
# sqlite
# sybase

View File

@@ -0,0 +1 @@
from sqlalchemy.dialects.mysql.base import *

View File

@@ -0,0 +1,12 @@
# Stubs for sqlalchemy.dialects (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# Names in __all__ with no definition:
# firebird
# mssql
# mysql
# oracle
# postgresql
# sqlite
# sybase

View File

@@ -0,0 +1,42 @@
# Stubs for sqlalchemy.dialects.mysql (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from . import base
BIGINT = base.BIGINT
BINARY = base.BINARY
BIT = base.BIT
BLOB = base.BLOB
BOOLEAN = base.BOOLEAN
CHAR = base.CHAR
DATE = base.DATE
DATETIME = base.DATETIME
DECIMAL = base.DECIMAL
DOUBLE = base.DOUBLE
ENUM = base.ENUM
DECIMAL = base.DECIMAL
FLOAT = base.FLOAT
INTEGER = base.INTEGER
INTEGER = base.INTEGER
LONGBLOB = base.LONGBLOB
LONGTEXT = base.LONGTEXT
MEDIUMBLOB = base.MEDIUMBLOB
MEDIUMINT = base.MEDIUMINT
MEDIUMTEXT = base.MEDIUMTEXT
NCHAR = base.NCHAR
NVARCHAR = base.NVARCHAR
NUMERIC = base.NUMERIC
SET = base.SET
SMALLINT = base.SMALLINT
REAL = base.REAL
TEXT = base.TEXT
TIME = base.TIME
TIMESTAMP = base.TIMESTAMP
TINYBLOB = base.TINYBLOB
TINYINT = base.TINYINT
TINYTEXT = base.TINYTEXT
VARBINARY = base.VARBINARY
VARCHAR = base.VARCHAR
YEAR = base.YEAR
dialect = base.dialect

View File

@@ -0,0 +1,350 @@
# Stubs for sqlalchemy.dialects.mysql.base (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from ... import sql
from ... import engine
from ... import util
from ... import types
sqltypes = sql.sqltypes
compiler = sql.compiler
reflection = engine.reflection
default = engine.default
topological = util.topological
DATE = types.DATE
BOOLEAN = types.BOOLEAN
BLOB = types.BLOB
BINARY = types.BINARY
VARBINARY = types.VARBINARY
RESERVED_WORDS = ... # type: Any
AUTOCOMMIT_RE = ... # type: Any
SET_RE = ... # type: Any
class _NumericType:
unsigned = ... # type: Any
zerofill = ... # type: Any
def __init__(self, unsigned=False, zerofill=False, **kw): ...
class _FloatType(_NumericType, sqltypes.Float):
scale = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
class _IntegerType(_NumericType, sqltypes.Integer):
display_width = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class _StringType(sqltypes.String):
charset = ... # type: Any
ascii = ... # type: Any
unicode = ... # type: Any
binary = ... # type: Any
national = ... # type: Any
def __init__(self, charset=None, collation=None, ascii=False, binary=False, unicode=False, national=False, **kw): ...
class _MatchType(sqltypes.Float, sqltypes.MatchType):
def __init__(self, **kw): ...
class NUMERIC(_NumericType, sqltypes.NUMERIC):
__visit_name__ = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
class DECIMAL(_NumericType, sqltypes.DECIMAL):
__visit_name__ = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
class DOUBLE(_FloatType):
__visit_name__ = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
class REAL(_FloatType, sqltypes.REAL):
__visit_name__ = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
class FLOAT(_FloatType, sqltypes.FLOAT):
__visit_name__ = ... # type: Any
def __init__(self, precision=None, scale=None, asdecimal=False, **kw): ...
def bind_processor(self, dialect): ...
class INTEGER(_IntegerType, sqltypes.INTEGER):
__visit_name__ = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class BIGINT(_IntegerType, sqltypes.BIGINT):
__visit_name__ = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class MEDIUMINT(_IntegerType):
__visit_name__ = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class TINYINT(_IntegerType):
__visit_name__ = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class SMALLINT(_IntegerType, sqltypes.SMALLINT):
__visit_name__ = ... # type: Any
def __init__(self, display_width=None, **kw): ...
class BIT(sqltypes.TypeEngine):
__visit_name__ = ... # type: Any
length = ... # type: Any
def __init__(self, length=None): ...
def result_processor(self, dialect, coltype): ...
class TIME(sqltypes.TIME):
__visit_name__ = ... # type: Any
fsp = ... # type: Any
def __init__(self, timezone=False, fsp=None): ...
def result_processor(self, dialect, coltype): ...
class TIMESTAMP(sqltypes.TIMESTAMP):
__visit_name__ = ... # type: Any
fsp = ... # type: Any
def __init__(self, timezone=False, fsp=None): ...
class DATETIME(sqltypes.DATETIME):
__visit_name__ = ... # type: Any
fsp = ... # type: Any
def __init__(self, timezone=False, fsp=None): ...
class YEAR(sqltypes.TypeEngine):
__visit_name__ = ... # type: Any
display_width = ... # type: Any
def __init__(self, display_width=None): ...
class TEXT(_StringType, sqltypes.TEXT):
__visit_name__ = ... # type: Any
def __init__(self, length=None, **kw): ...
class TINYTEXT(_StringType):
__visit_name__ = ... # type: Any
def __init__(self, **kwargs): ...
class MEDIUMTEXT(_StringType):
__visit_name__ = ... # type: Any
def __init__(self, **kwargs): ...
class LONGTEXT(_StringType):
__visit_name__ = ... # type: Any
def __init__(self, **kwargs): ...
class VARCHAR(_StringType, sqltypes.VARCHAR):
__visit_name__ = ... # type: Any
def __init__(self, length=None, **kwargs): ...
class CHAR(_StringType, sqltypes.CHAR):
__visit_name__ = ... # type: Any
def __init__(self, length=None, **kwargs): ...
class NVARCHAR(_StringType, sqltypes.NVARCHAR):
__visit_name__ = ... # type: Any
def __init__(self, length=None, **kwargs): ...
class NCHAR(_StringType, sqltypes.NCHAR):
__visit_name__ = ... # type: Any
def __init__(self, length=None, **kwargs): ...
class TINYBLOB(sqltypes._Binary):
__visit_name__ = ... # type: Any
class MEDIUMBLOB(sqltypes._Binary):
__visit_name__ = ... # type: Any
class LONGBLOB(sqltypes._Binary):
__visit_name__ = ... # type: Any
class _EnumeratedValues(_StringType): ...
class ENUM(sqltypes.Enum, _EnumeratedValues):
__visit_name__ = ... # type: Any
strict = ... # type: Any
def __init__(self, *enums, **kw): ...
def bind_processor(self, dialect): ...
def adapt(self, cls, **kw): ...
class SET(_EnumeratedValues):
__visit_name__ = ... # type: Any
retrieve_as_bitwise = ... # type: Any
values = ... # type: Any
def __init__(self, *values, **kw): ...
def column_expression(self, colexpr): ...
def result_processor(self, dialect, coltype): ...
def bind_processor(self, dialect): ...
def adapt(self, impltype, **kw): ...
MSTime = ... # type: Any
MSSet = ... # type: Any
MSEnum = ... # type: Any
MSLongBlob = ... # type: Any
MSMediumBlob = ... # type: Any
MSTinyBlob = ... # type: Any
MSBlob = ... # type: Any
MSBinary = ... # type: Any
MSVarBinary = ... # type: Any
MSNChar = ... # type: Any
MSNVarChar = ... # type: Any
MSChar = ... # type: Any
MSString = ... # type: Any
MSLongText = ... # type: Any
MSMediumText = ... # type: Any
MSTinyText = ... # type: Any
MSText = ... # type: Any
MSYear = ... # type: Any
MSTimeStamp = ... # type: Any
MSBit = ... # type: Any
MSSmallInteger = ... # type: Any
MSTinyInteger = ... # type: Any
MSMediumInteger = ... # type: Any
MSBigInteger = ... # type: Any
MSNumeric = ... # type: Any
MSDecimal = ... # type: Any
MSDouble = ... # type: Any
MSReal = ... # type: Any
MSFloat = ... # type: Any
MSInteger = ... # type: Any
colspecs = ... # type: Any
ischema_names = ... # type: Any
class MySQLExecutionContext(default.DefaultExecutionContext):
def should_autocommit_text(self, statement): ...
class MySQLCompiler(compiler.SQLCompiler):
render_table_with_column_in_update_from = ... # type: Any
extract_map = ... # type: Any
def visit_random_func(self, fn, **kw): ...
def visit_utc_timestamp_func(self, fn, **kw): ...
def visit_sysdate_func(self, fn, **kw): ...
def visit_concat_op_binary(self, binary, operator, **kw): ...
def visit_match_op_binary(self, binary, operator, **kw): ...
def get_from_hint_text(self, table, text): ...
def visit_typeclause(self, typeclause, type_=None): ...
def visit_cast(self, cast, **kwargs): ...
def render_literal_value(self, value, type_): ...
def visit_true(self, element, **kw): ...
def visit_false(self, element, **kw): ...
def get_select_precolumns(self, select, **kw): ...
def visit_join(self, join, asfrom=False, **kwargs): ...
def for_update_clause(self, select, **kw): ...
def limit_clause(self, select, **kw): ...
def update_limit_clause(self, update_stmt): ...
def update_tables_clause(self, update_stmt, from_table, extra_froms, **kw): ...
def update_from_clause(self, update_stmt, from_table, extra_froms, from_hints, **kw): ...
class MySQLDDLCompiler(compiler.DDLCompiler):
def create_table_constraints(self, table, **kw): ...
def get_column_specification(self, column, **kw): ...
def post_create_table(self, table): ...
def visit_create_index(self, create): ...
def visit_primary_key_constraint(self, constraint): ...
def visit_drop_index(self, drop): ...
def visit_drop_constraint(self, drop): ...
def define_constraint_match(self, constraint): ...
class MySQLTypeCompiler(compiler.GenericTypeCompiler):
def visit_NUMERIC(self, type_, **kw): ...
def visit_DECIMAL(self, type_, **kw): ...
def visit_DOUBLE(self, type_, **kw): ...
def visit_REAL(self, type_, **kw): ...
def visit_FLOAT(self, type_, **kw): ...
def visit_INTEGER(self, type_, **kw): ...
def visit_BIGINT(self, type_, **kw): ...
def visit_MEDIUMINT(self, type_, **kw): ...
def visit_TINYINT(self, type_, **kw): ...
def visit_SMALLINT(self, type_, **kw): ...
def visit_BIT(self, type_, **kw): ...
def visit_DATETIME(self, type_, **kw): ...
def visit_DATE(self, type_, **kw): ...
def visit_TIME(self, type_, **kw): ...
def visit_TIMESTAMP(self, type_, **kw): ...
def visit_YEAR(self, type_, **kw): ...
def visit_TEXT(self, type_, **kw): ...
def visit_TINYTEXT(self, type_, **kw): ...
def visit_MEDIUMTEXT(self, type_, **kw): ...
def visit_LONGTEXT(self, type_, **kw): ...
def visit_VARCHAR(self, type_, **kw): ...
def visit_CHAR(self, type_, **kw): ...
def visit_NVARCHAR(self, type_, **kw): ...
def visit_NCHAR(self, type_, **kw): ...
def visit_VARBINARY(self, type_, **kw): ...
def visit_large_binary(self, type_, **kw): ...
def visit_enum(self, type_, **kw): ...
def visit_BLOB(self, type_, **kw): ...
def visit_TINYBLOB(self, type_, **kw): ...
def visit_MEDIUMBLOB(self, type_, **kw): ...
def visit_LONGBLOB(self, type_, **kw): ...
def visit_ENUM(self, type_, **kw): ...
def visit_SET(self, type_, **kw): ...
def visit_BOOLEAN(self, type, **kw): ...
class MySQLIdentifierPreparer(compiler.IdentifierPreparer):
reserved_words = ... # type: Any
def __init__(self, dialect, server_ansiquotes=False, **kw): ...
class MySQLDialect(default.DefaultDialect):
name = ... # type: Any
supports_alter = ... # type: Any
supports_native_boolean = ... # type: Any
max_identifier_length = ... # type: Any
max_index_name_length = ... # type: Any
supports_native_enum = ... # type: Any
supports_sane_rowcount = ... # type: Any
supports_sane_multi_rowcount = ... # type: Any
supports_multivalues_insert = ... # type: Any
default_paramstyle = ... # type: Any
colspecs = ... # type: Any
statement_compiler = ... # type: Any
ddl_compiler = ... # type: Any
type_compiler = ... # type: Any
ischema_names = ... # type: Any
preparer = ... # type: Any
construct_arguments = ... # type: Any
isolation_level = ... # type: Any
def __init__(self, isolation_level=None, **kwargs): ...
def on_connect(self): ...
def set_isolation_level(self, connection, level): ...
def get_isolation_level(self, connection): ...
def do_commit(self, dbapi_connection): ...
def do_rollback(self, dbapi_connection): ...
def do_begin_twophase(self, connection, xid): ...
def do_prepare_twophase(self, connection, xid): ...
def do_rollback_twophase(self, connection, xid, is_prepared=True, recover=False): ...
def do_commit_twophase(self, connection, xid, is_prepared=True, recover=False): ...
def do_recover_twophase(self, connection): ...
def is_disconnect(self, e, connection, cursor): ...
def has_table(self, connection, table_name, schema=None): ...
identifier_preparer = ... # type: Any
def initialize(self, connection): ...
def get_schema_names(self, connection, **kw): ...
def get_table_names(self, connection, schema=None, **kw): ...
def get_view_names(self, connection, schema=None, **kw): ...
def get_table_options(self, connection, table_name, schema=None, **kw): ...
def get_columns(self, connection, table_name, schema=None, **kw): ...
def get_pk_constraint(self, connection, table_name, schema=None, **kw): ...
def get_foreign_keys(self, connection, table_name, schema=None, **kw): ...
def get_indexes(self, connection, table_name, schema=None, **kw): ...
def get_unique_constraints(self, connection, table_name, schema=None, **kw): ...
def get_view_definition(self, connection, view_name, schema=None, **kw): ...
class ReflectedState:
columns = ... # type: Any
table_options = ... # type: Any
table_name = ... # type: Any
keys = ... # type: Any
constraints = ... # type: Any
def __init__(self): ...
class MySQLTableDefinitionParser:
dialect = ... # type: Any
preparer = ... # type: Any
def __init__(self, dialect, preparer): ...
def parse(self, show_create, charset): ...
class _DecodingRowProxy:
rowproxy = ... # type: Any
charset = ... # type: Any
def __init__(self, rowproxy, charset): ...
def __getitem__(self, index): ...
def __getattr__(self, attr): ...

View File

@@ -0,0 +1,6 @@
# Stubs for sqlalchemy.engine (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def create_engine(*args, **kwargs): ...
def engine_from_config(configuration, prefix='', **kwargs): ...

View File

@@ -0,0 +1,39 @@
# Stubs for sqlalchemy.engine.strategies (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import base
strategies = ... # type: Any
class EngineStrategy:
def __init__(self): ...
def create(self, *args, **kwargs): ...
class DefaultEngineStrategy(EngineStrategy):
def create(self, name_or_url, **kwargs): ...
class PlainEngineStrategy(DefaultEngineStrategy):
name = ... # type: Any
engine_cls = ... # type: Any
class ThreadLocalEngineStrategy(DefaultEngineStrategy):
name = ... # type: Any
engine_cls = ... # type: Any
class MockEngineStrategy(EngineStrategy):
name = ... # type: Any
def create(self, name_or_url, executor, **kwargs): ...
class MockConnection(base.Connectable):
execute = ... # type: Any
def __init__(self, dialect, execute): ...
engine = ... # type: Any
dialect = ... # type: Any
name = ... # type: Any
def contextual_connect(self, **kwargs): ...
def execution_options(self, **kw): ...
def compiler(self, statement, parameters, **kwargs): ...
def create(self, entity, **kwargs): ...
def drop(self, entity, **kwargs): ...
def execute(self, object, *multiparams, **params): ...

View File

@@ -0,0 +1,27 @@
# Stubs for sqlalchemy.engine.url (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from .. import dialects
registry = dialects.registry
class URL:
drivername = ... # type: Any
username = ... # type: Any
password = ... # type: Any
host = ... # type: Any
port = ... # type: Any
database = ... # type: Any
query = ... # type: Any
def __init__(self, drivername, username=None, password=None, host=None, port=None, database=None, query=None): ...
def __to_string__(self, hide_password=True): ...
def __hash__(self): ...
def __eq__(self, other): ...
def get_backend_name(self): ...
def get_driver_name(self): ...
def get_dialect(self): ...
def translate_connect_args(self, names=..., **kw): ...
def make_url(name_or_url): ...

77
third_party/2.7/sqlalchemy/exc.pyi vendored Normal file
View File

@@ -0,0 +1,77 @@
# Stubs for sqlalchemy.exc (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class SQLAlchemyError(Exception): ...
class ArgumentError(SQLAlchemyError): ...
class NoSuchModuleError(ArgumentError): ...
class NoForeignKeysError(ArgumentError): ...
class AmbiguousForeignKeysError(ArgumentError): ...
class CircularDependencyError(SQLAlchemyError):
cycles = ... # type: Any
edges = ... # type: Any
def __init__(self, message, cycles, edges, msg=None): ...
def __reduce__(self): ...
class CompileError(SQLAlchemyError): ...
class UnsupportedCompilationError(CompileError):
def __init__(self, compiler, element_type): ...
class IdentifierError(SQLAlchemyError): ...
class DisconnectionError(SQLAlchemyError): ...
class TimeoutError(SQLAlchemyError): ...
class InvalidRequestError(SQLAlchemyError): ...
class NoInspectionAvailable(InvalidRequestError): ...
class ResourceClosedError(InvalidRequestError): ...
class NoSuchColumnError(KeyError, InvalidRequestError): ...
class NoReferenceError(InvalidRequestError): ...
class NoReferencedTableError(NoReferenceError):
table_name = ... # type: Any
def __init__(self, message, tname): ...
def __reduce__(self): ...
class NoReferencedColumnError(NoReferenceError):
table_name = ... # type: Any
column_name = ... # type: Any
def __init__(self, message, tname, cname): ...
def __reduce__(self): ...
class NoSuchTableError(InvalidRequestError): ...
class UnboundExecutionError(InvalidRequestError): ...
class DontWrapMixin: ...
UnmappedColumnError = ... # type: Any
class StatementError(SQLAlchemyError):
statement = ... # type: Any
params = ... # type: Any
orig = ... # type: Any
detail = ... # type: Any
def __init__(self, message, statement, params, orig): ...
def add_detail(self, msg): ...
def __reduce__(self): ...
def __unicode__(self): ...
class DBAPIError(StatementError):
@classmethod
def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated=False, dialect=None): ...
def __reduce__(self): ...
connection_invalidated = ... # type: Any
def __init__(self, statement, params, orig, connection_invalidated=False): ...
class InterfaceError(DBAPIError): ...
class DatabaseError(DBAPIError): ...
class DataError(DatabaseError): ...
class OperationalError(DatabaseError): ...
class IntegrityError(DatabaseError): ...
class InternalError(DatabaseError): ...
class ProgrammingError(DatabaseError): ...
class NotSupportedError(DatabaseError): ...
class SADeprecationWarning(DeprecationWarning): ...
class SAPendingDeprecationWarning(PendingDeprecationWarning): ...
class SAWarning(RuntimeWarning): ...

View File

@@ -0,0 +1,5 @@
# Stubs for sqlalchemy.inspection (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def inspect(subject, raiseerr=True): ...

View File

@@ -0,0 +1,96 @@
# Stubs for sqlalchemy.orm (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from . import mapper
from . import interfaces
from . import deprecated_interfaces
from . import util
from . import properties
from . import relationships
from . import descriptor_props
from . import session
from . import scoping
from . import query
from ..util import langhelpers
from . import strategy_options
Mapper = mapper.Mapper
class_mapper = mapper.class_mapper
configure_mappers = mapper.configure_mappers
reconstructor = mapper.reconstructor
validates = mapper.validates
EXT_CONTINUE = interfaces.EXT_CONTINUE
EXT_STOP = interfaces.EXT_STOP
PropComparator = interfaces.PropComparator
MapperExtension = deprecated_interfaces.MapperExtension
SessionExtension = deprecated_interfaces.SessionExtension
AttributeExtension = deprecated_interfaces.AttributeExtension
aliased = util.aliased
join = util.join
object_mapper = util.object_mapper
outerjoin = util.outerjoin
polymorphic_union = util.polymorphic_union
was_deleted = util.was_deleted
with_parent = util.with_parent
with_polymorphic = util.with_polymorphic
ColumnProperty = properties.ColumnProperty
RelationshipProperty = relationships.RelationshipProperty
ComparableProperty = descriptor_props.ComparableProperty
CompositeProperty = descriptor_props.CompositeProperty
SynonymProperty = descriptor_props.SynonymProperty
foreign = relationships.foreign
remote = relationships.remote
Session = session.Session
object_session = session.object_session
sessionmaker = session.sessionmaker
make_transient = session.make_transient
make_transient_to_detached = session.make_transient_to_detached
scoped_session = scoping.scoped_session
AliasOption = query.AliasOption
Query = query.Query
Bundle = query.Bundle
public_factory = langhelpers.public_factory
def create_session(bind=None, **kwargs): ...
relationship = ... # type: Any
def relation(*arg, **kw): ...
def dynamic_loader(argument, **kw): ...
column_property = ... # type: Any
composite = ... # type: Any
def backref(name, **kwargs): ...
def deferred(*columns, **kw): ...
mapper = ... # type: Any
synonym = ... # type: Any
comparable_property = ... # type: Any
def compile_mappers(): ...
def clear_mappers(): ...
joinedload = ... # type: Any
joinedload_all = ... # type: Any
contains_eager = ... # type: Any
defer = ... # type: Any
undefer = ... # type: Any
undefer_group = ... # type: Any
load_only = ... # type: Any
lazyload = ... # type: Any
lazyload_all = ... # type: Any
subqueryload = ... # type: Any
subqueryload_all = ... # type: Any
immediateload = ... # type: Any
noload = ... # type: Any
defaultload = ... # type: Any
Load = strategy_options.Load
def eagerload(*args, **kwargs): ...
def eagerload_all(*args, **kwargs): ...
contains_alias = ... # type: Any

View File

@@ -0,0 +1,93 @@
# Stubs for sqlalchemy.orm.session (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class _SessionClassMethods:
@classmethod
def close_all(cls): ...
@classmethod
def identity_key(cls, orm_util, *args, **kwargs): ...
@classmethod
def object_session(cls, instance): ...
class SessionTransaction:
session = ... # type: Any
nested = ... # type: Any
def __init__(self, session, parent=None, nested=False): ...
@property
def is_active(self): ...
def connection(self, bindkey, execution_options=None, **kwargs): ...
def prepare(self): ...
def commit(self): ...
def rollback(self, _capture_exception=False): ...
def close(self, invalidate=False): ...
def __enter__(self): ...
def __exit__(self, type, value, traceback): ...
class Session(_SessionClassMethods):
public_methods = ... # type: Any
identity_map = ... # type: Any
bind = ... # type: Any
transaction = ... # type: Any
hash_key = ... # type: Any
autoflush = ... # type: Any
autocommit = ... # type: Any
expire_on_commit = ... # type: Any
twophase = ... # type: Any
def __init__(self, bind=None, autoflush=True, expire_on_commit=True, _enable_transaction_accounting=True, autocommit=False, twophase=False, weak_identity_map=True, binds=None, extension=None, info=None, query_cls=...): ...
connection_callable = ... # type: Any
def info(self): ...
def begin(self, subtransactions=False, nested=False): ...
def begin_nested(self): ...
def rollback(self): ...
def commit(self): ...
def prepare(self): ...
def connection(self, mapper=None, clause=None, bind=None, close_with_result=False, execution_options=None, **kw): ...
def execute(self, clause, params=None, mapper=None, bind=None, **kw): ...
def scalar(self, clause, params=None, mapper=None, bind=None, **kw): ...
def close(self): ...
def invalidate(self): ...
def expunge_all(self): ...
def bind_mapper(self, mapper, bind): ...
def bind_table(self, table, bind): ...
def get_bind(self, mapper=None, clause=None): ...
def query(self, *entities, **kwargs): ...
@property
def no_autoflush(self): ...
def refresh(self, instance, attribute_names=None, lockmode=None): ...
def expire_all(self): ...
def expire(self, instance, attribute_names=None): ...
def prune(self): ...
def expunge(self, instance): ...
def add(self, instance, _warn=True): ...
def add_all(self, instances): ...
def delete(self, instance): ...
def merge(self, instance, load=True): ...
def enable_relationship_loading(self, obj): ...
def __contains__(self, instance): ...
def __iter__(self): ...
def flush(self, objects=None): ...
def bulk_save_objects(self, objects, return_defaults=False, update_changed_only=True): ...
def bulk_insert_mappings(self, mapper, mappings, return_defaults=False): ...
def bulk_update_mappings(self, mapper, mappings): ...
def is_modified(self, instance, include_collections=True, passive=True): ...
@property
def is_active(self): ...
@property
def dirty(self): ...
@property
def deleted(self): ...
@property
def new(self): ...
class sessionmaker(_SessionClassMethods):
kw = ... # type: Any
class_ = ... # type: Any
def __init__(self, bind=None, class_=..., autoflush=True, autocommit=False, expire_on_commit=True, info=None, **kw): ...
def __call__(self, **local_kw): ...
def configure(self, **new_kw): ...
# Names in __all__ with no definition:
# SessionExtension

109
third_party/2.7/sqlalchemy/pool.pyi vendored Normal file
View File

@@ -0,0 +1,109 @@
# Stubs for sqlalchemy.pool (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import log
from . import util
threading = util.threading
memoized_property = util.memoized_property
chop_traceback = util.chop_traceback
proxies = ... # type: Any
def manage(module, **params): ...
def clear_managers(): ...
reset_rollback = ... # type: Any
reset_commit = ... # type: Any
reset_none = ... # type: Any
class _ConnDialect:
def do_rollback(self, dbapi_connection): ...
def do_commit(self, dbapi_connection): ...
def do_close(self, dbapi_connection): ...
class Pool(log.Identified):
logging_name = ... # type: Any
echo = ... # type: Any
def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, logging_name=None, reset_on_return=True, listeners=None, events=None, _dispatch=None, _dialect=None): ...
def add_listener(self, listener): ...
def unique_connection(self): ...
def recreate(self): ...
def dispose(self): ...
def connect(self): ...
def status(self): ...
class _ConnectionRecord:
connection = ... # type: Any
finalize_callback = ... # type: Any
def __init__(self, pool): ...
def info(self): ...
@classmethod
def checkout(cls, pool): ...
fairy_ref = ... # type: Any
def checkin(self): ...
def close(self): ...
def invalidate(self, e=None, soft=False): ...
def get_connection(self): ...
class _ConnectionFairy:
connection = ... # type: Any
def __init__(self, dbapi_connection, connection_record, echo): ...
@property
def is_valid(self): ...
def info(self): ...
def invalidate(self, e=None, soft=False): ...
def cursor(self, *args, **kwargs): ...
def __getattr__(self, key): ...
info = ... # type: Any
def detach(self): ...
def close(self): ...
class SingletonThreadPool(Pool):
size = ... # type: Any
def __init__(self, creator, pool_size=5, **kw): ...
def recreate(self): ...
def dispose(self): ...
def status(self): ...
class QueuePool(Pool):
def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **kw): ...
def recreate(self): ...
def dispose(self): ...
def status(self): ...
def size(self): ...
def checkedin(self): ...
def overflow(self): ...
def checkedout(self): ...
class NullPool(Pool):
def status(self): ...
def recreate(self): ...
def dispose(self): ...
class StaticPool(Pool):
def connection(self): ...
def status(self): ...
def dispose(self): ...
def recreate(self): ...
class AssertionPool(Pool):
def __init__(self, *args, **kw): ...
def status(self): ...
def dispose(self): ...
def recreate(self): ...
class _DBProxy:
module = ... # type: Any
kw = ... # type: Any
poolclass = ... # type: Any
pools = ... # type: Any
def __init__(self, module, poolclass=..., **kw): ...
def close(self): ...
def __del__(self): ...
def __getattr__(self, key): ...
def get_pool(self, *args, **kw): ...
def connect(self, *args, **kw): ...
def dispose(self, *args, **kw): ...

51
third_party/2.7/sqlalchemy/schema.pyi vendored Normal file
View File

@@ -0,0 +1,51 @@
# Stubs for sqlalchemy.schema (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from .sql import base
from .sql import schema
from .sql import naming
from .sql import ddl
SchemaVisitor = base.SchemaVisitor
CheckConstraint = schema.CheckConstraint
Column = schema.Column
ColumnDefault = schema.ColumnDefault
Constraint = schema.Constraint
DefaultClause = schema.DefaultClause
DefaultGenerator = schema.DefaultGenerator
FetchedValue = schema.FetchedValue
ForeignKey = schema.ForeignKey
ForeignKeyConstraint = schema.ForeignKeyConstraint
Index = schema.Index
MetaData = schema.MetaData
PassiveDefault = schema.PassiveDefault
PrimaryKeyConstraint = schema.PrimaryKeyConstraint
SchemaItem = schema.SchemaItem
Sequence = schema.Sequence
Table = schema.Table
ThreadLocalMetaData = schema.ThreadLocalMetaData
UniqueConstraint = schema.UniqueConstraint
_get_table_key = schema._get_table_key
ColumnCollectionConstraint = schema.ColumnCollectionConstraint
ColumnCollectionMixin = schema.ColumnCollectionMixin
conv = naming.conv
DDL = ddl.DDL
CreateTable = ddl.CreateTable
DropTable = ddl.DropTable
CreateSequence = ddl.CreateSequence
DropSequence = ddl.DropSequence
CreateIndex = ddl.CreateIndex
DropIndex = ddl.DropIndex
CreateSchema = ddl.CreateSchema
DropSchema = ddl.DropSchema
_DropView = ddl._DropView
CreateColumn = ddl.CreateColumn
AddConstraint = ddl.AddConstraint
DropConstraint = ddl.DropConstraint
DDLBase = ddl.DDLBase
DDLElement = ddl.DDLElement
_CreateDropBase = ddl._CreateDropBase
_DDLCompiles = ddl._DDLCompiles
sort_tables = ddl.sort_tables
sort_tables_and_constraints = ddl.sort_tables_and_constraints

View File

@@ -0,0 +1,66 @@
# Stubs for sqlalchemy.sql (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from . import expression
from . import visitors
Alias = expression.Alias
ClauseElement = expression.ClauseElement
ColumnCollection = expression.ColumnCollection
ColumnElement = expression.ColumnElement
CompoundSelect = expression.CompoundSelect
Delete = expression.Delete
FromClause = expression.FromClause
Insert = expression.Insert
Join = expression.Join
Select = expression.Select
Selectable = expression.Selectable
TableClause = expression.TableClause
Update = expression.Update
alias = expression.alias
and_ = expression.and_
asc = expression.asc
between = expression.between
bindparam = expression.bindparam
case = expression.case
cast = expression.cast
collate = expression.collate
column = expression.column
delete = expression.delete
desc = expression.desc
distinct = expression.distinct
except_ = expression.except_
except_all = expression.except_all
exists = expression.exists
extract = expression.extract
false = expression.false
False_ = expression.False_
func = expression.func
funcfilter = expression.funcfilter
insert = expression.insert
intersect = expression.intersect
intersect_all = expression.intersect_all
join = expression.join
label = expression.label
literal = expression.literal
literal_column = expression.literal_column
modifier = expression.modifier
not_ = expression.not_
null = expression.null
or_ = expression.or_
outerjoin = expression.outerjoin
outparam = expression.outparam
over = expression.over
select = expression.select
subquery = expression.subquery
table = expression.table
text = expression.text
true = expression.true
True_ = expression.True_
tuple_ = expression.tuple_
type_coerce = expression.type_coerce
union = expression.union
union_all = expression.union_all
update = expression.update
ClauseVisitor = visitors.ClauseVisitor

View File

@@ -0,0 +1,67 @@
# Stubs for sqlalchemy.sql.expression (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from . import functions
from . import elements
from . import base
from . import selectable
from . import dml
func = functions.func
modifier = functions.modifier
ClauseElement = elements.ClauseElement
ColumnElement = elements.ColumnElement
not_ = elements.not_
collate = elements.collate
literal_column = elements.literal_column
between = elements.between
literal = elements.literal
outparam = elements.outparam
type_coerce = elements.type_coerce
ColumnCollection = base.ColumnCollection
Alias = selectable.Alias
Join = selectable.Join
Select = selectable.Select
Selectable = selectable.Selectable
TableClause = selectable.TableClause
CompoundSelect = selectable.CompoundSelect
FromClause = selectable.FromClause
alias = selectable.alias
subquery = selectable.subquery
Insert = dml.Insert
Update = dml.Update
Delete = dml.Delete
and_ = ... # type: Any
or_ = ... # type: Any
bindparam = ... # type: Any
select = ... # type: Any
text = ... # type: Any
table = ... # type: Any
column = ... # type: Any
over = ... # type: Any
label = ... # type: Any
case = ... # type: Any
cast = ... # type: Any
extract = ... # type: Any
tuple_ = ... # type: Any
except_ = ... # type: Any
except_all = ... # type: Any
intersect = ... # type: Any
intersect_all = ... # type: Any
union = ... # type: Any
union_all = ... # type: Any
exists = ... # type: Any
nullsfirst = ... # type: Any
nullslast = ... # type: Any
asc = ... # type: Any
desc = ... # type: Any
distinct = ... # type: Any
null = ... # type: Any
join = ... # type: Any
outerjoin = ... # type: Any
insert = ... # type: Any
update = ... # type: Any
delete = ... # type: Any

View File

@@ -0,0 +1,33 @@
# Stubs for sqlalchemy.sql.visitors (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class VisitableType(type):
def __init__(cls, clsname, bases, clsdict): ...
class Visitable: ...
class ClauseVisitor:
__traverse_options__ = ... # type: Any
def traverse_single(self, obj, **kw): ...
def iterate(self, obj): ...
def traverse(self, obj): ...
def chain(self, visitor): ...
class CloningVisitor(ClauseVisitor):
def copy_and_process(self, list_): ...
def traverse(self, obj): ...
class ReplacingCloningVisitor(CloningVisitor):
def replace(self, elem): ...
def traverse(self, obj): ...
def iterate(obj, opts): ...
def iterate_depthfirst(obj, opts): ...
def traverse_using(iterator, obj, visitors): ...
def traverse(obj, opts, visitors): ...
def traverse_depthfirst(obj, opts, visitors): ...
def cloned_traverse(obj, opts, visitors): ...
def replacement_traverse(obj, opts, replace): ...

51
third_party/2.7/sqlalchemy/types.pyi vendored Normal file
View File

@@ -0,0 +1,51 @@
# Stubs for sqlalchemy.types (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from .sql import type_api
from .sql import sqltypes
TypeEngine = type_api.TypeEngine
TypeDecorator = type_api.TypeDecorator
UserDefinedType = type_api.UserDefinedType
BIGINT = sqltypes.BIGINT
BINARY = sqltypes.BINARY
BLOB = sqltypes.BLOB
BOOLEAN = sqltypes.BOOLEAN
BigInteger = sqltypes.BigInteger
Binary = sqltypes.Binary
Boolean = sqltypes.Boolean
CHAR = sqltypes.CHAR
CLOB = sqltypes.CLOB
Concatenable = sqltypes.Concatenable
DATE = sqltypes.DATE
DATETIME = sqltypes.DATETIME
DECIMAL = sqltypes.DECIMAL
Date = sqltypes.Date
DateTime = sqltypes.DateTime
Enum = sqltypes.Enum
FLOAT = sqltypes.FLOAT
Float = sqltypes.Float
INT = sqltypes.INT
INTEGER = sqltypes.INTEGER
Integer = sqltypes.Integer
Interval = sqltypes.Interval
LargeBinary = sqltypes.LargeBinary
NCHAR = sqltypes.NCHAR
NVARCHAR = sqltypes.NVARCHAR
NUMERIC = sqltypes.NUMERIC
Numeric = sqltypes.Numeric
PickleType = sqltypes.PickleType
REAL = sqltypes.REAL
SMALLINT = sqltypes.SMALLINT
SmallInteger = sqltypes.SmallInteger
String = sqltypes.String
TEXT = sqltypes.TEXT
TIME = sqltypes.TIME
TIMESTAMP = sqltypes.TIMESTAMP
Text = sqltypes.Text
Time = sqltypes.Time
Unicode = sqltypes.Unicode
UnicodeText = sqltypes.UnicodeText
VARBINARY = sqltypes.VARBINARY
VARCHAR = sqltypes.VARCHAR

View File

@@ -0,0 +1,133 @@
# Stubs for sqlalchemy.util (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from . import compat
from . import _collections
from . import langhelpers
from . import deprecations
callable = compat.callable
cmp = compat.cmp
reduce = compat.reduce
threading = compat.threading
py3k = compat.py3k
py33 = compat.py33
py2k = compat.py2k
jython = compat.jython
pypy = compat.pypy
cpython = compat.cpython
win32 = compat.win32
pickle = compat.pickle
dottedgetter = compat.dottedgetter
parse_qsl = compat.parse_qsl
namedtuple = compat.namedtuple
next = compat.next
reraise = compat.reraise
raise_from_cause = compat.raise_from_cause
text_type = compat.text_type
safe_kwarg = compat.safe_kwarg
string_types = compat.string_types
int_types = compat.int_types
binary_type = compat.binary_type
nested = compat.nested
quote_plus = compat.quote_plus
with_metaclass = compat.with_metaclass
print_ = compat.print_
itertools_filterfalse = compat.itertools_filterfalse
u = compat.u
ue = compat.ue
b = compat.b
unquote_plus = compat.unquote_plus
unquote = compat.unquote
b64decode = compat.b64decode
b64encode = compat.b64encode
byte_buffer = compat.byte_buffer
itertools_filter = compat.itertools_filter
iterbytes = compat.iterbytes
StringIO = compat.StringIO
inspect_getargspec = compat.inspect_getargspec
zip_longest = compat.zip_longest
KeyedTuple = _collections.KeyedTuple
ImmutableContainer = _collections.ImmutableContainer
immutabledict = _collections.immutabledict
Properties = _collections.Properties
OrderedProperties = _collections.OrderedProperties
ImmutableProperties = _collections.ImmutableProperties
OrderedDict = _collections.OrderedDict
OrderedSet = _collections.OrderedSet
IdentitySet = _collections.IdentitySet
OrderedIdentitySet = _collections.OrderedIdentitySet
column_set = _collections.column_set
column_dict = _collections.column_dict
ordered_column_set = _collections.ordered_column_set
populate_column_dict = _collections.populate_column_dict
unique_list = _collections.unique_list
UniqueAppender = _collections.UniqueAppender
PopulateDict = _collections.PopulateDict
EMPTY_SET = _collections.EMPTY_SET
to_list = _collections.to_list
to_set = _collections.to_set
to_column_set = _collections.to_column_set
update_copy = _collections.update_copy
flatten_iterator = _collections.flatten_iterator
has_intersection = _collections.has_intersection
LRUCache = _collections.LRUCache
ScopedRegistry = _collections.ScopedRegistry
ThreadLocalRegistry = _collections.ThreadLocalRegistry
WeakSequence = _collections.WeakSequence
coerce_generator_arg = _collections.coerce_generator_arg
lightweight_named_tuple = _collections.lightweight_named_tuple
iterate_attributes = langhelpers.iterate_attributes
class_hierarchy = langhelpers.class_hierarchy
portable_instancemethod = langhelpers.portable_instancemethod
unbound_method_to_callable = langhelpers.unbound_method_to_callable
getargspec_init = langhelpers.getargspec_init
format_argspec_init = langhelpers.format_argspec_init
format_argspec_plus = langhelpers.format_argspec_plus
get_func_kwargs = langhelpers.get_func_kwargs
get_cls_kwargs = langhelpers.get_cls_kwargs
decorator = langhelpers.decorator
as_interface = langhelpers.as_interface
memoized_property = langhelpers.memoized_property
memoized_instancemethod = langhelpers.memoized_instancemethod
md5_hex = langhelpers.md5_hex
group_expirable_memoized_property = langhelpers.group_expirable_memoized_property
dependencies = langhelpers.dependencies
decode_slice = langhelpers.decode_slice
monkeypatch_proxied_specials = langhelpers.monkeypatch_proxied_specials
asbool = langhelpers.asbool
bool_or_str = langhelpers.bool_or_str
coerce_kw_type = langhelpers.coerce_kw_type
duck_type_collection = langhelpers.duck_type_collection
assert_arg_type = langhelpers.assert_arg_type
symbol = langhelpers.symbol
dictlike_iteritems = langhelpers.dictlike_iteritems
classproperty = langhelpers.classproperty
set_creation_order = langhelpers.set_creation_order
warn_exception = langhelpers.warn_exception
warn = langhelpers.warn
NoneType = langhelpers.NoneType
constructor_copy = langhelpers.constructor_copy
methods_equivalent = langhelpers.methods_equivalent
chop_traceback = langhelpers.chop_traceback
asint = langhelpers.asint
generic_repr = langhelpers.generic_repr
counter = langhelpers.counter
PluginLoader = langhelpers.PluginLoader
hybridproperty = langhelpers.hybridproperty
hybridmethod = langhelpers.hybridmethod
safe_reraise = langhelpers.safe_reraise
get_callable_argspec = langhelpers.get_callable_argspec
only_once = langhelpers.only_once
attrsetter = langhelpers.attrsetter
ellipses_string = langhelpers.ellipses_string
warn_limited = langhelpers.warn_limited
map_bits = langhelpers.map_bits
MemoizedSlots = langhelpers.MemoizedSlots
EnsureKWArgType = langhelpers.EnsureKWArgType
warn_deprecated = deprecations.warn_deprecated
warn_pending_deprecation = deprecations.warn_pending_deprecation
deprecated = deprecations.deprecated
pending_deprecation = deprecations.pending_deprecation
inject_docstring_text = deprecations.inject_docstring_text

View File

@@ -0,0 +1,214 @@
# Stubs for sqlalchemy.util._collections (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from . import compat
threading = compat.threading
itertools_filterfalse = compat.itertools_filterfalse
string_types = compat.string_types
EMPTY_SET = ... # type: Any
class AbstractKeyedTuple(tuple):
def keys(self): ...
class KeyedTuple(AbstractKeyedTuple):
def __new__(cls, vals, labels=None): ...
def __setattr__(self, key, value): ...
class _LW(AbstractKeyedTuple):
def __new__(cls, vals): ...
def __reduce__(self): ...
class ImmutableContainer:
__delitem__ = ... # type: Any
class immutabledict(ImmutableContainer, dict):
clear = ... # type: Any
def __new__(cls, *args): ...
def __init__(self, *args): ...
def __reduce__(self): ...
def union(self, d): ...
class Properties:
def __init__(self, data): ...
def __len__(self): ...
def __iter__(self): ...
def __add__(self, other): ...
def __setitem__(self, key, object): ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __setattr__(self, key, obj): ...
def __getattr__(self, key): ...
def __contains__(self, key): ...
def as_immutable(self): ...
def update(self, value): ...
def get(self, key, default=None): ...
def keys(self): ...
def values(self): ...
def items(self): ...
def has_key(self, key): ...
def clear(self): ...
class OrderedProperties(Properties):
def __init__(self): ...
class ImmutableProperties(ImmutableContainer, Properties): ...
class OrderedDict(dict):
def __reduce__(self): ...
def __init__(self, ____sequence=None, **kwargs): ...
def clear(self): ...
def copy(self): ...
def __copy__(self): ...
def sort(self, *arg, **kw): ...
def update(self, ____sequence=None, **kwargs): ...
def setdefault(self, key, value): ...
def __iter__(self): ...
def keys(self): ...
def values(self): ...
def items(self): ...
def itervalues(self): ...
def iterkeys(self): ...
def iteritems(self): ...
def __setitem__(self, key, object): ...
def __delitem__(self, key): ...
def pop(self, key, *default): ...
def popitem(self): ...
class OrderedSet(set):
def __init__(self, d=None): ...
def add(self, element): ...
def remove(self, element): ...
def insert(self, pos, element): ...
def discard(self, element): ...
def clear(self): ...
def __getitem__(self, key): ...
def __iter__(self): ...
def __add__(self, other): ...
def update(self, iterable): ...
__ior__ = ... # type: Any
def union(self, other): ...
__or__ = ... # type: Any
def intersection(self, other): ...
__and__ = ... # type: Any
def symmetric_difference(self, other): ...
__xor__ = ... # type: Any
def difference(self, other): ...
__sub__ = ... # type: Any
def intersection_update(self, other): ...
__iand__ = ... # type: Any
def symmetric_difference_update(self, other): ...
__ixor__ = ... # type: Any
def difference_update(self, other): ...
__isub__ = ... # type: Any
class IdentitySet:
def __init__(self, iterable=None): ...
def add(self, value): ...
def __contains__(self, value): ...
def remove(self, value): ...
def discard(self, value): ...
def pop(self): ...
def clear(self): ...
def __cmp__(self, other): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def issubset(self, iterable): ...
def __le__(self, other): ...
def __lt__(self, other): ...
def issuperset(self, iterable): ...
def __ge__(self, other): ...
def __gt__(self, other): ...
def union(self, iterable): ...
def __or__(self, other): ...
def update(self, iterable): ...
def __ior__(self, other): ...
def difference(self, iterable): ...
def __sub__(self, other): ...
def difference_update(self, iterable): ...
def __isub__(self, other): ...
def intersection(self, iterable): ...
def __and__(self, other): ...
def intersection_update(self, iterable): ...
def __iand__(self, other): ...
def symmetric_difference(self, iterable): ...
def __xor__(self, other): ...
def symmetric_difference_update(self, iterable): ...
def __ixor__(self, other): ...
def copy(self): ...
__copy__ = ... # type: Any
def __len__(self): ...
def __iter__(self): ...
def __hash__(self): ...
class WeakSequence:
def __init__(self, __elements=...): ...
def append(self, item): ...
def __len__(self): ...
def __iter__(self): ...
def __getitem__(self, index): ...
class OrderedIdentitySet(IdentitySet):
class _working_set(OrderedSet):
__sa_hash_exempt__ = ... # type: Any
def __init__(self, iterable=None): ...
class PopulateDict(dict):
creator = ... # type: Any
def __init__(self, creator): ...
def __missing__(self, key): ...
column_set = ... # type: Any
column_dict = ... # type: Any
ordered_column_set = ... # type: Any
populate_column_dict = ... # type: Any
def unique_list(seq, hashfunc=None): ...
class UniqueAppender:
data = ... # type: Any
def __init__(self, data, via=None): ...
def append(self, item): ...
def __iter__(self): ...
def coerce_generator_arg(arg): ...
def to_list(x, default=None): ...
def has_intersection(set_, iterable): ...
def to_set(x): ...
def to_column_set(x): ...
def update_copy(d, _new=None, **kw): ...
def flatten_iterator(x): ...
class LRUCache(dict):
capacity = ... # type: Any
threshold = ... # type: Any
def __init__(self, capacity=100, threshold=0.0): ...
def get(self, key, default=None): ...
def __getitem__(self, key): ...
def values(self): ...
def setdefault(self, key, value): ...
def __setitem__(self, key, value): ...
def lightweight_named_tuple(name, fields): ...
class ScopedRegistry:
createfunc = ... # type: Any
scopefunc = ... # type: Any
registry = ... # type: Any
def __init__(self, createfunc, scopefunc): ...
def __call__(self): ...
def has(self): ...
def set(self, obj): ...
def clear(self): ...
class ThreadLocalRegistry(ScopedRegistry):
createfunc = ... # type: Any
registry = ... # type: Any
def __init__(self, createfunc): ...
def __call__(self): ...
def has(self): ...
def set(self, obj): ...
def clear(self): ...

Some files were not shown because too many files have changed in this diff Show More