mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 11:07:17 +08:00
0
third_party/2/Crypto/Cipher/AES.pyi
vendored
Normal file
0
third_party/2/Crypto/Cipher/AES.pyi
vendored
Normal file
15
third_party/2/Crypto/Cipher/__init__.pyi
vendored
Normal file
15
third_party/2/Crypto/Cipher/__init__.pyi
vendored
Normal 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
|
||||
5
third_party/2/Crypto/Random/__init__.pyi
vendored
Normal file
5
third_party/2/Crypto/Random/__init__.pyi
vendored
Normal 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: ...
|
||||
3
third_party/2/Crypto/Random/random.pyi
vendored
Normal file
3
third_party/2/Crypto/Random/random.pyi
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# very stubby version of Crypto.Random
|
||||
|
||||
def randint(min: int, max: int) -> int: ...
|
||||
0
third_party/2/Crypto/__init__.pyi
vendored
Normal file
0
third_party/2/Crypto/__init__.pyi
vendored
Normal file
0
third_party/2/OpenSSL/__init__.pyi
vendored
Normal file
0
third_party/2/OpenSSL/__init__.pyi
vendored
Normal file
6
third_party/2/OpenSSL/crypto.pyi
vendored
Normal file
6
third_party/2/OpenSSL/crypto.pyi
vendored
Normal 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/boto/__init__.pyi
vendored
Normal file
78
third_party/2/boto/__init__.pyi
vendored
Normal 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=...): ...
|
||||
def set_stream_logger(name, level=..., format_string=...): ...
|
||||
def connect_sqs(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_s3(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_gs(gs_access_key_id=..., gs_secret_access_key=..., **kwargs): ...
|
||||
def connect_ec2(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_elb(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_autoscale(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudwatch(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_sdb(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_fps(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_mturk(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudfront(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_vpc(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_rds(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_rds2(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_emr(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_sns(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_iam(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_route53(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudformation(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_euca(host=..., aws_access_key_id=..., aws_secret_access_key=..., port=..., path=..., is_secure=..., **kwargs): ...
|
||||
def connect_glacier(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_ec2_endpoint(url, aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_walrus(host=..., aws_access_key_id=..., aws_secret_access_key=..., port=..., path=..., is_secure=..., **kwargs): ...
|
||||
def connect_ses(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_sts(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_ia(ia_access_key_id=..., ia_secret_access_key=..., is_secure=..., **kwargs): ...
|
||||
def connect_dynamodb(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_swf(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudsearch(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudsearch2(aws_access_key_id=..., aws_secret_access_key=..., sign_request=..., **kwargs): ...
|
||||
def connect_cloudsearchdomain(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_beanstalk(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_elastictranscoder(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_opsworks(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_redshift(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_support(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudtrail(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_directconnect(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_kinesis(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_logs(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_route53domains(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cognito_identity(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cognito_sync(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_kms(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_awslambda(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_codedeploy(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_configservice(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_cloudhsm(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_ec2containerservice(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def connect_machinelearning(aws_access_key_id=..., aws_secret_access_key=..., **kwargs): ...
|
||||
def storage_uri(uri_str, default_scheme=..., debug=..., validate=..., bucket_storage_uri_class=..., suppress_consec_slashes=..., is_latest=...): ...
|
||||
def storage_uri_for_key(key): ...
|
||||
108
third_party/2/boto/connection.pyi
vendored
Normal file
108
third_party/2/boto/connection.pyi
vendored
Normal 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) -> None: ...
|
||||
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) -> None: ...
|
||||
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) -> None: ...
|
||||
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=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., path=..., provider=..., security_token=..., suppress_consec_slashes=..., validate_certs=..., 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=...): ...
|
||||
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=..., port=...): ...
|
||||
def prefix_proxy_to_path(self, path, host=...): ...
|
||||
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=..., headers=..., data=..., host=...): ...
|
||||
def make_request(self, method, path, headers=..., data=..., host=..., auth_path=..., sender=..., override_num_retries=..., params=..., retry_handler=...): ...
|
||||
def close(self): ...
|
||||
|
||||
class AWSQueryConnection(AWSAuthConnection):
|
||||
APIVersion = ... # type: Any
|
||||
ResponseError = ... # type: Any
|
||||
def __init__(self, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., host=..., debug=..., https_connection_factory=..., path=..., security_token=..., validate_certs=..., profile_name=..., provider=...) -> None: ...
|
||||
def get_utf8_value(self, value): ...
|
||||
def make_request(self, action, params=..., 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=..., verb=...): ...
|
||||
def get_object(self, action, params, cls, path=..., parent=..., verb=...): ...
|
||||
def get_status(self, action, params, path=..., parent=..., verb=...): ...
|
||||
11
third_party/2/boto/ec2/__init__.pyi
vendored
Normal file
11
third_party/2/boto/ec2/__init__.pyi
vendored
Normal 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): ...
|
||||
43
third_party/2/boto/ec2/elb/__init__.pyi
vendored
Normal file
43
third_party/2/boto/ec2/elb/__init__.pyi
vendored
Normal 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=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., region=..., path=..., security_token=..., validate_certs=..., profile_name=...) -> None: ...
|
||||
def build_list_params(self, params, items, label): ...
|
||||
def get_all_load_balancers(self, load_balancer_names=..., marker=...): ...
|
||||
def create_load_balancer(self, name, zones, listeners=..., subnets=..., security_groups=..., scheme=..., complex_listeners=...): ...
|
||||
def create_load_balancer_listeners(self, name, listeners=..., complex_listeners=...): ...
|
||||
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=...): ...
|
||||
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): ...
|
||||
149
third_party/2/boto/exception.pyi
vendored
Normal file
149
third_party/2/boto/exception.pyi
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
# Stubs for boto.exception (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class BotoClientError(StandardError):
|
||||
reason = ... # type: Any
|
||||
def __init__(self, reason, *args): ...
|
||||
|
||||
class SDBPersistenceError(StandardError): ...
|
||||
class StoragePermissionsError(BotoClientError): ...
|
||||
class S3PermissionsError(StoragePermissionsError): ...
|
||||
class GSPermissionsError(StoragePermissionsError): ...
|
||||
|
||||
class BotoServerError(StandardError):
|
||||
status = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
body = ... # type: Any
|
||||
request_id = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
message = ... # type: Any
|
||||
box_usage = ... # type: Any
|
||||
def __init__(self, status, reason, body=None, *args): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __setattr__(self, name, value): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class ConsoleOutput:
|
||||
parent = ... # type: Any
|
||||
instance_id = ... # type: Any
|
||||
timestamp = ... # type: Any
|
||||
comment = ... # type: Any
|
||||
output = ... # type: Any
|
||||
def __init__(self, parent=None): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class StorageCreateError(BotoServerError):
|
||||
bucket = ... # type: Any
|
||||
def __init__(self, status, reason, body=None): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class S3CreateError(StorageCreateError): ...
|
||||
class GSCreateError(StorageCreateError): ...
|
||||
class StorageCopyError(BotoServerError): ...
|
||||
class S3CopyError(StorageCopyError): ...
|
||||
class GSCopyError(StorageCopyError): ...
|
||||
|
||||
class SQSError(BotoServerError):
|
||||
detail = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, status, reason, body=None): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class SQSDecodeError(BotoClientError):
|
||||
message = ... # type: Any
|
||||
def __init__(self, reason, message): ...
|
||||
|
||||
class StorageResponseError(BotoServerError):
|
||||
resource = ... # type: Any
|
||||
def __init__(self, status, reason, body=None): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class S3ResponseError(StorageResponseError): ...
|
||||
class GSResponseError(StorageResponseError): ...
|
||||
|
||||
class EC2ResponseError(BotoServerError):
|
||||
errors = ... # type: Any
|
||||
def __init__(self, status, reason, body=None): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
request_id = ... # type: Any
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class JSONResponseError(BotoServerError):
|
||||
status = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
body = ... # type: Any
|
||||
error_message = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
def __init__(self, status, reason, body=None, *args): ...
|
||||
|
||||
class DynamoDBResponseError(JSONResponseError): ...
|
||||
class SWFResponseError(JSONResponseError): ...
|
||||
class EmrResponseError(BotoServerError): ...
|
||||
|
||||
class _EC2Error:
|
||||
connection = ... # type: Any
|
||||
error_code = ... # type: Any
|
||||
error_message = ... # type: Any
|
||||
def __init__(self, connection=None): ...
|
||||
def startElement(self, name, attrs, connection): ...
|
||||
def endElement(self, name, value, connection): ...
|
||||
|
||||
class SDBResponseError(BotoServerError): ...
|
||||
class AWSConnectionError(BotoClientError): ...
|
||||
class StorageDataError(BotoClientError): ...
|
||||
class S3DataError(StorageDataError): ...
|
||||
class GSDataError(StorageDataError): ...
|
||||
|
||||
class InvalidUriError(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message): ...
|
||||
|
||||
class InvalidAclError(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message): ...
|
||||
|
||||
class InvalidCorsError(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message): ...
|
||||
|
||||
class NoAuthHandlerFound(Exception): ...
|
||||
|
||||
class InvalidLifecycleConfigError(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message): ...
|
||||
|
||||
class ResumableTransferDisposition:
|
||||
START_OVER = ... # type: Any
|
||||
WAIT_BEFORE_RETRY = ... # type: Any
|
||||
ABORT_CUR_PROCESS = ... # type: Any
|
||||
ABORT = ... # type: Any
|
||||
|
||||
class ResumableUploadException(Exception):
|
||||
message = ... # type: Any
|
||||
disposition = ... # type: Any
|
||||
def __init__(self, message, disposition): ...
|
||||
|
||||
class ResumableDownloadException(Exception):
|
||||
message = ... # type: Any
|
||||
disposition = ... # type: Any
|
||||
def __init__(self, message, disposition): ...
|
||||
|
||||
class TooManyRecordsException(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message): ...
|
||||
|
||||
class PleaseRetryException(Exception):
|
||||
message = ... # type: Any
|
||||
response = ... # type: Any
|
||||
def __init__(self, message, response=None): ...
|
||||
|
||||
class InvalidInstanceMetadataError(Exception):
|
||||
MSG = ... # type: Any
|
||||
def __init__(self, msg): ...
|
||||
0
third_party/2/concurrent/__init__.pyi
vendored
Normal file
0
third_party/2/concurrent/__init__.pyi
vendored
Normal file
37
third_party/2/concurrent/futures/__init__.pyi
vendored
Normal file
37
third_party/2/concurrent/futures/__init__.pyi
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
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 = ...) -> _T: ...
|
||||
def exception(self, timeout: float = ...) -> 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 = ...) -> Iterable[_T]: ...
|
||||
def shutdown(self, wait: bool = ...) -> None: ...
|
||||
def __enter__(self) -> Executor: ...
|
||||
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool: ...
|
||||
|
||||
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 = ..., return_when: str = ...) -> Tuple[Iterable[Future], Iterable[Future]]: ...
|
||||
|
||||
FIRST_COMPLETED = ... # type: str
|
||||
FIRST_EXCEPTION = ... # type: str
|
||||
ALL_COMPLETED = ... # type: str
|
||||
|
||||
def as_completed(fs: Iterable[Future], timeout: float = ...) -> Iterator[Future]: ...
|
||||
27
third_party/2/croniter.pyi
vendored
Normal file
27
third_party/2/croniter.pyi
vendored
Normal 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): ...
|
||||
0
third_party/2/dateutil/__init__.pyi
vendored
Normal file
0
third_party/2/dateutil/__init__.pyi
vendored
Normal file
39
third_party/2/dateutil/parser.pyi
vendored
Normal file
39
third_party/2/dateutil/parser.pyi
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
from typing import List, Tuple, Optional, Callable, Union, IO, Any, Dict
|
||||
from datetime import datetime, tzinfo
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
|
||||
class parserinfo(object):
|
||||
JUMP = ... # type: List[str]
|
||||
WEEKDAYS = ... # type: List[Tuple[str, str]]
|
||||
MONTHS = ... # type: List[Tuple[str, str]]
|
||||
HMS = ... # type: List[Tuple[str, str, str]]
|
||||
AMPM = ... # type: List[Tuple[str, str]]
|
||||
UTCZONE = ... # type: List[str]
|
||||
PERTAIN = ... # type: List[str]
|
||||
TZOFFSET = ... # type: Dict[str, int]
|
||||
|
||||
def __init__(self, dayfirst: bool=..., yearfirst: bool=...) -> None: ...
|
||||
def jump(self, name: unicode) -> bool: ...
|
||||
def weekday(self, name: unicode) -> Union[int, None]: ...
|
||||
def month(self, name: unicode) -> Union[int, None]: ...
|
||||
def hms(self, name: unicode) -> Union[int, None]: ...
|
||||
def ampm(self, name: unicode) -> Union[int, None]: ...
|
||||
def pertain(self, name: unicode) -> bool: ...
|
||||
def utczone(self, name: unicode) -> bool: ...
|
||||
def tzoffset(self, name: unicode) -> Union[int, None]: ...
|
||||
def convertyear(self, year: int) -> int: ...
|
||||
def validate(self, res: datetime) -> bool: ...
|
||||
|
||||
class parser(object):
|
||||
def __init__(self, info: parserinfo = None) -> None: ...
|
||||
def parse(self, timestr: Union[str, unicode, IO[unicode]],
|
||||
default: datetime = None,
|
||||
ignoretz: bool = ..., tzinfos: Dict[Union[str, unicode], tzinfo] = None,
|
||||
**kwargs: Any) -> datetime: ...
|
||||
|
||||
DEFAULTPARSER = ... # type: parser
|
||||
def parse(timestr: Union[str, unicode, IO[unicode]],
|
||||
parserinfo: parserinfo = None,
|
||||
**kwargs: Any) -> datetime: ...
|
||||
86
third_party/2/dateutil/relativedelta.pyi
vendored
Normal file
86
third_party/2/dateutil/relativedelta.pyi
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
from typing import Any, Optional, Union
|
||||
from datetime import date, datetime, timedelta
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
|
||||
class weekday(object):
|
||||
def __init__(self, weekday: int, n: Optional[int]=...) -> None: ...
|
||||
|
||||
def __call__(self, n: int) -> 'weekday': ...
|
||||
|
||||
def __eq__(self, other) -> bool: ...
|
||||
|
||||
def __repr__(self) -> str: ...
|
||||
|
||||
weekday = ... # type: int
|
||||
n = ... # type: int
|
||||
|
||||
MO = ... # type: weekday
|
||||
TU = ... # type: weekday
|
||||
WE = ... # type: weekday
|
||||
TH = ... # type: weekday
|
||||
FR = ... # type: weekday
|
||||
SA = ... # type: weekday
|
||||
SU = ... # type: weekday
|
||||
|
||||
|
||||
class relativedelta(object):
|
||||
def __init__(self,
|
||||
dt1: Optional[date]=...,
|
||||
dt2: Optional[date]=...,
|
||||
years: Optional[int]=..., months: Optional[int]=...,
|
||||
days: Optional[int]=..., leapdays: Optional[int]=...,
|
||||
weeks: Optional[int]=...,
|
||||
hours: Optional[int]=..., minutes: Optional[int]=...,
|
||||
seconds: Optional[int]=..., microseconds: Optional[int]=...,
|
||||
year: Optional[int]=..., month: Optional[int]=...,
|
||||
day: Optional[int]=...,
|
||||
weekday: Optional[Union[int, weekday]]=...,
|
||||
yearday: Optional[int]=...,
|
||||
nlyearday: Optional[int]=...,
|
||||
hour: Optional[int]=..., minute: Optional[int]=...,
|
||||
second: Optional[int]=...,
|
||||
microsecond: Optional[int]=...) -> None: ...
|
||||
|
||||
@property
|
||||
def weeks(self) -> int: ...
|
||||
|
||||
@weeks.setter
|
||||
def weeks(self, value: int) -> None: ...
|
||||
|
||||
def normalized(self) -> 'relativedelta': ...
|
||||
|
||||
def __add__(
|
||||
self,
|
||||
other: Union['relativedelta', timedelta, date, datetime]) -> 'relativedelta': ...
|
||||
|
||||
def __radd__(
|
||||
self,
|
||||
other: Any) -> 'relativedelta': ...
|
||||
|
||||
def __rsub__(
|
||||
self,
|
||||
other: Any) -> 'relativedelta': ...
|
||||
|
||||
def __sub__(self, other: 'relativedelta') -> 'relativedelta': ...
|
||||
|
||||
def __neg__(self) -> 'relativedelta': ...
|
||||
|
||||
def __bool__(self) -> bool: ...
|
||||
|
||||
def __nonzero__(self) -> bool: ...
|
||||
|
||||
def __mul__(self, other: float) -> 'relativedelta': ...
|
||||
|
||||
def __rmul__(self, other: float) -> 'relativedelta': ...
|
||||
|
||||
def __eq__(self, other) -> bool: ...
|
||||
|
||||
def __ne__(self, other: object) -> bool: ...
|
||||
|
||||
def __div__(self, other: float) -> 'relativedelta': ...
|
||||
|
||||
def __truediv__(self, other: float) -> 'relativedelta': ...
|
||||
|
||||
def __repr__(self) -> str: ...
|
||||
19
third_party/2/enum.pyi
vendored
Normal file
19
third_party/2/enum.pyi
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
from typing import List, Any, TypeVar
|
||||
|
||||
class Enum:
|
||||
def __new__(cls, value: Any) -> None: ...
|
||||
def __repr__(self) -> str: ...
|
||||
def __str__(self) -> str: ...
|
||||
def __dir__(self) -> List[str]: ...
|
||||
def __format__(self, format_spec: str) -> str: ...
|
||||
def __hash__(self) -> Any: ...
|
||||
def __reduce_ex__(self, proto: Any) -> Any: ...
|
||||
|
||||
name = ... # type: str
|
||||
value = ... # type: Any
|
||||
|
||||
class IntEnum(int, Enum): ...
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
def unique(enumeration: _T) -> _T: ...
|
||||
301
third_party/2/fb303/FacebookService.pyi
vendored
Normal file
301
third_party/2/fb303/FacebookService.pyi
vendored
Normal 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) -> None: ...
|
||||
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=..., 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/fb303/__init__.pyi
vendored
Normal file
0
third_party/2/fb303/__init__.pyi
vendored
Normal file
216
third_party/2/gflags.pyi
vendored
Normal file
216
third_party/2/gflags.pyi
vendored
Normal 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: ...
|
||||
|
||||
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 = ..., indent: str = ..., firstline_indent: str = ..., tabs: str = ...) -> str: ...
|
||||
def DocToHelp(doc: str) -> str: ...
|
||||
|
||||
class FlagValues:
|
||||
def __init__(self) -> None: ...
|
||||
def UseGnuGetOpt(self, use_gnu_getopt: bool = ...) -> 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 = ...) -> str: ...
|
||||
def FindModuleIdDefiningFlag(self, flagname: str, default: int = ...) -> 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 = ...) -> List[str]: ...
|
||||
def FlagsIntoString(self) -> str: ...
|
||||
def AppendFlagsIntoFile(self, filename: str) -> None: ...
|
||||
def WriteHelpInXMLFormat(self, outfile: IO[str] = ...) -> None: ...
|
||||
# TODO validator: gflags_validators.Validator
|
||||
def AddValidator(self, validator: Any) -> None: ...
|
||||
|
||||
FLAGS = ... # type: FlagValues
|
||||
|
||||
class Flag:
|
||||
name = ... # type: str
|
||||
default = ... # type: Any
|
||||
default_as_str = ... # type: str
|
||||
value = ... # type: Any
|
||||
help = ... # type: str
|
||||
short_name = ... # type: str
|
||||
boolean = False
|
||||
present = False
|
||||
parser = ... # type: ArgumentParser
|
||||
serializer = ... # type: ArgumentSerializer
|
||||
allow_override = False
|
||||
|
||||
def __init__(self, parser: ArgumentParser, serializer: ArgumentSerializer, name: str,
|
||||
default: str, help_string: str, short_name: str = ..., boolean: bool = ...,
|
||||
allow_override: bool = ...) -> 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 = ..., indent: str = ...) -> None: ...
|
||||
|
||||
class ArgumentParser(object):
|
||||
syntactic_help = ... # type: str
|
||||
# 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_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 = ..., **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=..., **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 = ... # type: str
|
||||
number_name = ... # type: str
|
||||
syntactic_help = ... # type: str
|
||||
def __init__(self, lower_bound: float = ..., upper_bound: float = ...) -> None: ...
|
||||
def Convert(self, argument: Any) -> float: ...
|
||||
def Type(self) -> str: ...
|
||||
|
||||
def DEFINE_float(name: str, default: float, help: str, lower_bound: float = ...,
|
||||
upper_bound: float = ..., flag_values: FlagValues = ..., **args: Any) -> None: ...
|
||||
|
||||
class IntegerParser(NumericParser):
|
||||
number_article = ... # type: str
|
||||
number_name = ... # type: str
|
||||
syntactic_help = ... # type: str
|
||||
def __init__(self, lower_bound: int = ..., upper_bound: int = ...) -> None: ...
|
||||
def Convert(self, argument: Any) -> int: ...
|
||||
def Type(self) -> str: ...
|
||||
|
||||
def DEFINE_integer(name: str, default: int, help: str, lower_bound: int = ...,
|
||||
upper_bound: int = ..., 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 = ..., name: str = ...) -> 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 = ...,
|
||||
upper_bound: int = ..., flag_values: FlagValues = ..., **args: Any) -> None: ...
|
||||
|
||||
|
||||
def DEFINE_multi_float(name: str, default: Union[float, List[float]], help: str,
|
||||
lower_bound: float = ..., upper_bound: float = ...,
|
||||
flag_values: FlagValues = ..., **args: Any) -> None: ...
|
||||
0
third_party/2/google/__init__.pyi
vendored
Normal file
0
third_party/2/google/__init__.pyi
vendored
Normal file
1
third_party/2/google/protobuf/__init__.pyi
vendored
Normal file
1
third_party/2/google/protobuf/__init__.pyi
vendored
Normal file
@@ -0,0 +1 @@
|
||||
__version__ = ... # type: str
|
||||
163
third_party/2/google/protobuf/descriptor.pyi
vendored
Normal file
163
third_party/2/google/protobuf/descriptor.pyi
vendored
Normal 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) -> None: ...
|
||||
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=..., 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=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...): ...
|
||||
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=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., 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=..., has_default_value=..., containing_oneof=...): ...
|
||||
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=..., has_default_value=..., containing_oneof=...) -> None: ...
|
||||
@staticmethod
|
||||
def ProtoTypeToCppProtoType(proto_type): ...
|
||||
|
||||
class EnumDescriptor(_NestedDescriptorBase):
|
||||
def __new__(cls, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...): ...
|
||||
values = ... # type: Any
|
||||
values_by_name = ... # type: Any
|
||||
values_by_number = ... # type: Any
|
||||
def __init__(self, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
class EnumValueDescriptor(DescriptorBase):
|
||||
def __new__(cls, name, index, number, type=..., options=...): ...
|
||||
name = ... # type: Any
|
||||
index = ... # type: Any
|
||||
number = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, name, index, number, type=..., 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) -> None: ...
|
||||
|
||||
class ServiceDescriptor(_NestedDescriptorBase):
|
||||
index = ... # type: Any
|
||||
methods = ... # type: Any
|
||||
def __init__(self, name, full_name, index, methods, options=..., file=..., serialized_start=..., 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=..., serialized_pb=..., dependencies=..., syntax=...): ...
|
||||
_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=..., serialized_pb=..., dependencies=..., syntax=...) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
def MakeDescriptor(desc_proto, package=..., build_file_if_cpp=..., syntax=...): ...
|
||||
def _ParseOptions(message, string): ...
|
||||
2
third_party/2/google/protobuf/descriptor_pb2.pyi
vendored
Normal file
2
third_party/2/google/protobuf/descriptor_pb2.pyi
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
class FileOptions(object): ...
|
||||
class FieldOptions(object): ...
|
||||
0
third_party/2/google/protobuf/internal/__init__.pyi
vendored
Normal file
0
third_party/2/google/protobuf/internal/__init__.pyi
vendored
Normal file
34
third_party/2/google/protobuf/internal/decoder.pyi
vendored
Normal file
34
third_party/2/google/protobuf/internal/decoder.pyi
vendored
Normal 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
|
||||
38
third_party/2/google/protobuf/internal/encoder.pyi
vendored
Normal file
38
third_party/2/google/protobuf/internal/encoder.pyi
vendored
Normal 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): ...
|
||||
11
third_party/2/google/protobuf/internal/enum_type_wrapper.pyi
vendored
Normal file
11
third_party/2/google/protobuf/internal/enum_type_wrapper.pyi
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
from typing import Any, List, 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]]: ...
|
||||
54
third_party/2/google/protobuf/internal/wire_format.pyi
vendored
Normal file
54
third_party/2/google/protobuf/internal/wire_format.pyi
vendored
Normal 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): ...
|
||||
36
third_party/2/google/protobuf/message.pyi
vendored
Normal file
36
third_party/2/google/protobuf/message.pyi
vendored
Normal 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=...): ...
|
||||
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) -> None: ...
|
||||
10
third_party/2/google/protobuf/reflection.pyi
vendored
Normal file
10
third_party/2/google/protobuf/reflection.pyi
vendored
Normal 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) -> None: ...
|
||||
|
||||
def ParseMessage(descriptor, byte_str): ...
|
||||
def MakeClass(descriptor): ...
|
||||
153
third_party/2/itsdangerous.pyi
vendored
Normal file
153
third_party/2/itsdangerous.pyi
vendored
Normal file
@@ -0,0 +1,153 @@
|
||||
# Stubs for itsdangerous (Python 2.7)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from datetime import datetime
|
||||
from itertools import izip
|
||||
from typing import Any, Callable, IO, MutableMapping, Optional, Text, Tuple, Union
|
||||
|
||||
PY2 = ... # type: bool
|
||||
text_type = unicode
|
||||
int_to_byte = chr
|
||||
number_types = (int, long, float)
|
||||
|
||||
bytes_like = Union[bytearray, str]
|
||||
|
||||
class _CompactJSON:
|
||||
def loads(self, payload: Text) -> Any: ...
|
||||
def dumps(self, obj: Any) -> Text: ...
|
||||
|
||||
compact_json = _CompactJSON
|
||||
EPOCH = ... # type: int
|
||||
|
||||
def want_bytes(s: str, encoding='', errors='') -> str: ...
|
||||
def is_text_serializer(serializer: Any) -> bool: ...
|
||||
def constant_time_compare(val1: bytes_like, val2: bytes_like) -> bool: ...
|
||||
|
||||
class BadData(Exception):
|
||||
message = ... # type: str
|
||||
def __init__(self, message: str) -> None: ...
|
||||
|
||||
class BadPayload(BadData):
|
||||
original_error = ... # type: Optional[Exception]
|
||||
def __init__(self, message: str, original_error: Optional[Exception]=None) -> None: ...
|
||||
|
||||
class BadSignature(BadData):
|
||||
payload = ... # type: Optional[Any]
|
||||
def __init__(self, message: str, payload: Optional[Any]=None) -> None: ...
|
||||
|
||||
class BadTimeSignature(BadSignature):
|
||||
date_signed = ... # type: Optional[int]
|
||||
def __init__(self, message, payload: Optional[Any]=None, date_signed: Optional[int]=None) -> None: ...
|
||||
|
||||
class BadHeader(BadSignature):
|
||||
header = ... # type: Any
|
||||
original_error = ... # type: Any
|
||||
def __init__(self, message, payload=None, header=None, original_error=None) -> None: ...
|
||||
|
||||
class SignatureExpired(BadTimeSignature): ...
|
||||
|
||||
def base64_encode(string: bytes_like) -> str: ...
|
||||
def base64_decode(string: bytes_like) -> str: ...
|
||||
def int_to_bytes(num: int) -> str: ...
|
||||
def bytes_to_int(bytestr: bytes_like) -> int: ...
|
||||
|
||||
class SigningAlgorithm:
|
||||
def get_signature(self, key: bytes_like, value: bytes_like) -> str: ...
|
||||
def verify_signature(self, key: bytes_like, value: bytes_like, sig: bytes_like) -> bool: ...
|
||||
|
||||
class NoneAlgorithm(SigningAlgorithm):
|
||||
def get_signature(self, key: bytes_like, value: bytes_like) -> str: ...
|
||||
|
||||
class HMACAlgorithm(SigningAlgorithm):
|
||||
default_digest_method = ... # type: Callable
|
||||
digest_method = ... # type: Callable
|
||||
def __init__(self, digest_method: Optional[Callable]=None) -> None: ...
|
||||
def get_signature(self, key: bytes_like, value: bytes_like) -> str: ...
|
||||
|
||||
class Signer:
|
||||
default_digest_method = ... # type: Callable
|
||||
default_key_derivation = ... # type: str
|
||||
secret_key = ... # type: bytes_like
|
||||
sep = ... # type: str
|
||||
salt = ... # type: bytes_like
|
||||
key_derivation = ... # type: str
|
||||
digest_method = ... # type: Callable
|
||||
algorithm = ... # type: SigningAlgorithm
|
||||
def __init__(self, secret_key: bytes_like, salt: Optional[bytes_like]=None, sep: Optional[str]='',
|
||||
key_derivation: Optional[str]=None,
|
||||
digest_method: Optional[Callable]=None,
|
||||
algorithm: Optional[SigningAlgorithm]=None) -> None: ...
|
||||
def derive_key(self) -> str: ...
|
||||
def get_signature(self, value: bytes_like) -> str: ...
|
||||
def sign(self, value: bytes_like) -> str: ...
|
||||
def verify_signature(self, value: bytes_like, sig: bytes_like) -> bool: ...
|
||||
def unsign(self, signed_value: str) -> str: ...
|
||||
def validate(self, signed_value: str) -> bool: ...
|
||||
|
||||
class TimestampSigner(Signer):
|
||||
def get_timestamp(self) -> int: ...
|
||||
def timestamp_to_datetime(self, ts: int) -> datetime: ...
|
||||
def sign(self, value: bytes_like) -> str: ...
|
||||
def unsign(self, value: str, max_age: Optional[int]=None, return_timestamp=False) -> Any: ...
|
||||
def validate(self, signed_value: str, max_age: Optional[int]=None) -> bool: ...
|
||||
|
||||
class Serializer:
|
||||
default_serializer = ... # type: Any
|
||||
default_signer = ... # type: Callable[..., Signer]
|
||||
secret_key = ... # type: Any
|
||||
salt = ... # type: bytes_like
|
||||
serializer = ... # type: Any
|
||||
is_text_serializer = ... # type: bool
|
||||
signer = ... # type: Signer
|
||||
signer_kwargs = ... # type: MutableMapping
|
||||
def __init__(self, secret_key: bytes_like, salt: Optional[bytes_like]=b'', serializer=None, signer: Optional[Callable[..., Signer]]=None, signer_kwargs: Optional[MutableMapping]=None) -> None: ...
|
||||
def load_payload(self, payload: Any, serializer=None) -> Any: ...
|
||||
def dump_payload(self, *args, **kwargs) -> str: ...
|
||||
def make_signer(self, salt: Optional[bytes_like]=None) -> Signer: ...
|
||||
def dumps(self, obj: Any, salt: Optional[bytes_like]=None) -> str: ...
|
||||
def dump(self, obj: Any, f: IO[str], salt: Optional[bytes_like]=None) -> None: ...
|
||||
def loads(self, s: str, salt: Optional[bytes_like]=None) -> Any: ...
|
||||
def load(self, f: IO[str], salt: Optional[bytes_like]=None): ...
|
||||
def loads_unsafe(self, s, salt: Optional[bytes_like]=None) -> Tuple[bool, Any]: ...
|
||||
def load_unsafe(self, f: IO[str], *args, **kwargs) -> Tuple[bool, Any]: ...
|
||||
|
||||
class TimedSerializer(Serializer):
|
||||
default_signer = ... # type: Callable[..., TimestampSigner]
|
||||
def loads(self, s: str, salt: Optional[bytes_like]=None, max_age: Optional[int]=None, return_timestamp=False) -> Any: ...
|
||||
def loads_unsafe(self, s: str, salt: Optional[bytes_like]=None, max_age: Optional[int]=None) -> Tuple[bool, Any]: ...
|
||||
|
||||
class JSONWebSignatureSerializer(Serializer):
|
||||
jws_algorithms = ... # type: MutableMapping[str, SigningAlgorithm]
|
||||
default_algorithm = ... # type: str
|
||||
default_serializer = ... # type: Any
|
||||
algorithm_name = ... # type: str
|
||||
algorithm = ... # type: Any
|
||||
def __init__(self, secret_key: bytes_like, salt: Optional[bytes_like]=None, serializer=None, signer: Optional[Callable[..., Signer]]=None, signer_kwargs: Optional[MutableMapping]=None, algorithm_name: Optional[str]=None) -> None: ...
|
||||
def load_payload(self, payload: Any, return_header=False) -> Any: ...
|
||||
def dump_payload(self, *args, **kwargs) -> str: ...
|
||||
def make_algorithm(self, algorithm_name: str) -> SigningAlgorithm: ...
|
||||
def make_signer(self, salt: Optional[bytes_like]=None, algorithm_name: Optional[str]=None) -> Signer: ...
|
||||
def make_header(self, header_fields=Optional[MutableMapping]) -> MutableMapping: ...
|
||||
def dumps(self, obj: Any, salt: Optional[bytes_like]=None, header_fields=Optional[MutableMapping]) -> str: ...
|
||||
def loads(self, s: str, salt: Optional[bytes_like]=None, return_header=False) -> Any: ...
|
||||
def loads_unsafe(self, s, salt: Optional[bytes_like]=None, return_header=False) -> Tuple[bool, Any]: ...
|
||||
|
||||
class TimedJSONWebSignatureSerializer(JSONWebSignatureSerializer):
|
||||
DEFAULT_EXPIRES_IN = ... # type: int
|
||||
expires_in = ... # type: int
|
||||
def __init__(self, secret_key: bytes_like, expires_in: Optional[int]=None, **kwargs) -> None: ...
|
||||
def make_header(self, header_fields=Optional[MutableMapping]) -> MutableMapping: ...
|
||||
def loads(self, s: str, salt: Optional[bytes_like]=None, return_header=False) -> Any: ...
|
||||
def get_issue_date(self, header: MutableMapping) -> Optional[datetime]: ...
|
||||
def now(self) -> int: ...
|
||||
|
||||
class URLSafeSerializerMixin:
|
||||
def load_payload(self, payload: Any, **kwargs) -> Any: ...
|
||||
def dump_payload(self, *args, **kwargs) -> str: ...
|
||||
|
||||
class URLSafeSerializer(URLSafeSerializerMixin, Serializer):
|
||||
default_serializer = ... # type: Any
|
||||
|
||||
class URLSafeTimedSerializer(URLSafeSerializerMixin, TimedSerializer):
|
||||
default_serializer = ... # type: Any
|
||||
4
third_party/2/kazoo/__init__.pyi
vendored
Normal file
4
third_party/2/kazoo/__init__.pyi
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Stubs for kazoo (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
100
third_party/2/kazoo/client.pyi
vendored
Normal file
100
third_party/2/kazoo/client.pyi
vendored
Normal 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=..., client_id=..., handler=..., default_acl=..., auth_data=..., read_only=..., randomize_hosts=..., connection_retry=..., command_retry=..., logger=..., **kwargs) -> None: ...
|
||||
@property
|
||||
def client_state(self): ...
|
||||
@property
|
||||
def client_id(self): ...
|
||||
@property
|
||||
def connected(self): ...
|
||||
def set_hosts(self, hosts, randomize_hosts=...): ...
|
||||
def add_listener(self, listener): ...
|
||||
def remove_listener(self, listener): ...
|
||||
def start(self, timeout=...): ...
|
||||
def start_async(self): ...
|
||||
def stop(self): ...
|
||||
def restart(self): ...
|
||||
def close(self): ...
|
||||
def command(self, cmd=...): ...
|
||||
def server_version(self, retries=...): ...
|
||||
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=..., ephemeral=..., sequence=..., makepath=...): ...
|
||||
def create_async(self, path, value=..., acl=..., ephemeral=..., sequence=..., makepath=...): ...
|
||||
def ensure_path(self, path, acl=...): ...
|
||||
def ensure_path_async(self, path, acl=...): ...
|
||||
def exists(self, path, watch=...): ...
|
||||
def exists_async(self, path, watch=...): ...
|
||||
def get(self, path, watch=...): ...
|
||||
def get_async(self, path, watch=...): ...
|
||||
def get_children(self, path, watch=..., include_data=...): ...
|
||||
def get_children_async(self, path, watch=..., include_data=...): ...
|
||||
def get_acls(self, path): ...
|
||||
def get_acls_async(self, path): ...
|
||||
def set_acls(self, path, acls, version=...): ...
|
||||
def set_acls_async(self, path, acls, version=...): ...
|
||||
def set(self, path, value, version=...): ...
|
||||
def set_async(self, path, value, version=...): ...
|
||||
def transaction(self): ...
|
||||
def delete(self, path, version=..., recursive=...): ...
|
||||
def delete_async(self, path, version=...): ...
|
||||
def reconfig(self, joining, leaving, new_members, from_config=...): ...
|
||||
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) -> None: ...
|
||||
def create(self, path, value=..., acl=..., ephemeral=..., sequence=...): ...
|
||||
def delete(self, path, version=...): ...
|
||||
def set_data(self, path, value, version=...): ...
|
||||
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/kazoo/exceptions.pyi
vendored
Normal file
62
third_party/2/kazoo/exceptions.pyi
vendored
Normal 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
|
||||
4
third_party/2/kazoo/recipe/__init__.pyi
vendored
Normal file
4
third_party/2/kazoo/recipe/__init__.pyi
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Stubs for kazoo.recipe (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
25
third_party/2/kazoo/recipe/watchers.pyi
vendored
Normal file
25
third_party/2/kazoo/recipe/watchers.pyi
vendored
Normal 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=..., *args, **kwargs) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
class ChildrenWatch:
|
||||
def __init__(self, client, path, func=..., allow_session_lost=..., send_event=...) -> None: ...
|
||||
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=...) -> None: ...
|
||||
asy = ... # type: Any
|
||||
def start(self): ...
|
||||
81
third_party/2/pycurl.pyi
vendored
Normal file
81
third_party/2/pycurl.pyi
vendored
Normal 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 = ...) -> 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
|
||||
48
third_party/2/pymssql.pyi
vendored
Normal file
48
third_party/2/pymssql.pyi
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
from datetime import datetime, date, time
|
||||
|
||||
from typing import Any, Tuple, Iterable, List, Optional, Union, Sequence
|
||||
|
||||
Scalar = Union[int, float, str, datetime, date, time]
|
||||
Result = Union[Tuple[Scalar, ...], Dict[str, Scalar]]
|
||||
|
||||
class Connection(object):
|
||||
def __init__(self, user, password, host, database, timeout,
|
||||
login_timeout, charset, as_dict) -> None: ...
|
||||
def autocommit(self, status: bool) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
def cursor(self) -> 'Cursor': ...
|
||||
def rollback(self) -> None: ...
|
||||
|
||||
class Cursor(object):
|
||||
def __init__(self) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def __next__(self) -> Any: ...
|
||||
def callproc(procname: str, **kwargs) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def execute(self, stmt: str,
|
||||
params: Optional[Union[Scalar, Tuple[Scalar, ...],
|
||||
Dict[str, Scalar]]]) -> None: ...
|
||||
def executemany(self, stmt: str,
|
||||
params: Optional[Sequence[Tuple[Scalar, ...]]]) -> None: ...
|
||||
def fetchall(self) -> List[Result]: ...
|
||||
def fetchmany(self, size: Optional[Union[int, None]]) -> List[Result]: ...
|
||||
def fetchone(self) -> Result: ...
|
||||
|
||||
def connect(server: Optional[str],
|
||||
user: Optional[str],
|
||||
password: Optional[str],
|
||||
database: Optional[str],
|
||||
timeout: Optional[int],
|
||||
login_timeout: Optional[int],
|
||||
charset: Optional[str],
|
||||
as_dict: Optional[bool],
|
||||
host: Optional[str],
|
||||
appname: Optional[str],
|
||||
port: Optional[str],
|
||||
|
||||
conn_properties: Optional[Union[str, Sequence[str]]],
|
||||
autocommit: Optional[bool],
|
||||
tds_version: Optional[str]) -> Connection: ...
|
||||
def get_max_connections() -> int: ...
|
||||
def set_max_connections(n: int) -> None: ...
|
||||
28
third_party/2/redis/__init__.pyi
vendored
Normal file
28
third_party/2/redis/__init__.pyi
vendored
Normal 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/redis/client.pyi
vendored
Normal file
293
third_party/2/redis/client.pyi
vendored
Normal 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=..., **kwargs): ...
|
||||
connection_pool = ... # type: Any
|
||||
response_callbacks = ... # type: Any
|
||||
def __init__(self, host=..., port=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=..., socket_keepalive=..., socket_keepalive_options=..., connection_pool=..., unix_socket_path=..., encoding=..., encoding_errors=..., charset=..., errors=..., decode_responses=..., retry_on_timeout=..., ssl=..., ssl_keyfile=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=...) -> None: ...
|
||||
def set_response_callback(self, command, callback): ...
|
||||
def pipeline(self, transaction=..., shard_hint=...): ...
|
||||
def transaction(self, func, *watches, **kwargs): ...
|
||||
def lock(self, name, timeout=..., sleep=..., blocking_timeout=..., lock_class=..., thread_local=...): ...
|
||||
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=...): ...
|
||||
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=..., port=...): ...
|
||||
def slowlog_get(self, num=...): ...
|
||||
def slowlog_len(self): ...
|
||||
def slowlog_reset(self): ...
|
||||
def time(self): ...
|
||||
def append(self, key, value): ...
|
||||
def bitcount(self, key, start=..., end=...): ...
|
||||
def bitop(self, operation, dest, *keys): ...
|
||||
def bitpos(self, key, bit, start=..., end=...): ...
|
||||
def decr(self, name, amount=...): ...
|
||||
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=...): ...
|
||||
def incrby(self, name, amount=...): ...
|
||||
def incrbyfloat(self, name, amount=...): ...
|
||||
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=..., px=..., nx=..., xx=...): ...
|
||||
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=...): ...
|
||||
def ttl(self, name): ...
|
||||
def type(self, name): ...
|
||||
def watch(self, *names): ...
|
||||
def unwatch(self): ...
|
||||
def blpop(self, keys, timeout=...): ...
|
||||
def brpop(self, keys, timeout=...): ...
|
||||
def brpoplpush(self, src, dst, timeout=...): ...
|
||||
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=..., num=..., by=..., get=..., desc=..., alpha=..., store=..., groups=...): ...
|
||||
def scan(self, cursor=..., match=..., count=...): ...
|
||||
def scan_iter(self, match=..., count=...): ...
|
||||
def sscan(self, name, cursor=..., match=..., count=...): ...
|
||||
def sscan_iter(self, name, match=..., count=...): ...
|
||||
def hscan(self, name, cursor=..., match=..., count=...): ...
|
||||
def hscan_iter(self, name, match=..., count=...): ...
|
||||
def zscan(self, name, cursor=..., match=..., count=..., score_cast_func=...): ...
|
||||
def zscan_iter(self, name, match=..., count=..., 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=...): ...
|
||||
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=...): ...
|
||||
def zinterstore(self, dest, keys, aggregate=...): ...
|
||||
def zlexcount(self, name, min, max): ...
|
||||
def zrange(self, name, start, end, desc=..., withscores=..., score_cast_func=...): ...
|
||||
def zrangebylex(self, name, min, max, start=..., num=...): ...
|
||||
def zrangebyscore(self, name, min, max, start=..., num=..., withscores=..., 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=..., score_cast_func=...): ...
|
||||
def zrevrangebyscore(self, name, max, min, start=..., num=..., withscores=..., score_cast_func=...): ...
|
||||
def zrevrank(self, name, value): ...
|
||||
def zscore(self, name, value): ...
|
||||
def zunionstore(self, dest, keys, aggregate=...): ...
|
||||
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=...): ...
|
||||
def hincrbyfloat(self, name, key, amount=...): ...
|
||||
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=..., shard_hint=...): ...
|
||||
def setex(self, name, value, time): ...
|
||||
def lrem(self, name, value, num=...): ...
|
||||
def zadd(self, name, *args, **kwargs): ...
|
||||
|
||||
class PubSub:
|
||||
PUBLISH_MESSAGE_TYPES = ... # type: Any
|
||||
UNSUBSCRIBE_MESSAGE_TYPES = ... # type: Any
|
||||
connection_pool = ... # type: Any
|
||||
shard_hint = ... # type: Any
|
||||
ignore_subscribe_messages = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
def __init__(self, connection_pool, shard_hint=..., ignore_subscribe_messages=...) -> None: ...
|
||||
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=...): ...
|
||||
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=...): ...
|
||||
def handle_message(self, response, ignore_subscribe_messages=...): ...
|
||||
def run_in_thread(self, sleep_time=...): ...
|
||||
|
||||
class BasePipeline:
|
||||
UNWATCH_COMMANDS = ... # type: Any
|
||||
connection_pool = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
response_callbacks = ... # type: Any
|
||||
transaction = ... # type: Any
|
||||
shard_hint = ... # type: Any
|
||||
watching = ... # type: Any
|
||||
def __init__(self, connection_pool, response_callbacks, transaction, shard_hint) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_value, traceback): ...
|
||||
def __del__(self): ...
|
||||
def __len__(self): ...
|
||||
command_stack = ... # type: Any
|
||||
scripts = ... # type: Any
|
||||
explicit_transaction = ... # type: Any
|
||||
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=...): ...
|
||||
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) -> None: ...
|
||||
def __call__(self, keys=..., args=..., client=...): ...
|
||||
135
third_party/2/redis/connection.pyi
vendored
Normal file
135
third_party/2/redis/connection.pyi
vendored
Normal 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) -> None: ...
|
||||
|
||||
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) -> None: ...
|
||||
@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) -> None: ...
|
||||
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) -> None: ...
|
||||
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=..., db=..., password=..., socket_timeout=..., socket_connect_timeout=..., socket_keepalive=..., socket_keepalive_options=..., retry_on_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., parser_class=..., socket_read_size=...) -> None: ...
|
||||
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=..., ssl_certfile=..., ssl_cert_reqs=..., ssl_ca_certs=..., **kwargs) -> None: ...
|
||||
|
||||
class UnixDomainSocketConnection(Connection):
|
||||
description_format = ... # type: Any
|
||||
pid = ... # type: Any
|
||||
path = ... # type: Any
|
||||
db = ... # type: Any
|
||||
password = ... # type: Any
|
||||
socket_timeout = ... # type: Any
|
||||
retry_on_timeout = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
def __init__(self, path=..., db=..., password=..., socket_timeout=..., encoding=..., encoding_errors=..., decode_responses=..., retry_on_timeout=..., parser_class=..., socket_read_size=...) -> None: ...
|
||||
|
||||
class ConnectionPool:
|
||||
@classmethod
|
||||
def from_url(cls, url, db=..., **kwargs): ...
|
||||
connection_class = ... # type: Any
|
||||
connection_kwargs = ... # type: Any
|
||||
max_connections = ... # type: Any
|
||||
def __init__(self, connection_class=..., max_connections=..., **connection_kwargs) -> None: ...
|
||||
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=..., timeout=..., connection_class=..., queue_class=..., **connection_kwargs) -> None: ...
|
||||
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/redis/exceptions.pyi
vendored
Normal file
21
third_party/2/redis/exceptions.pyi
vendored
Normal 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/redis/utils.pyi
vendored
Normal file
12
third_party/2/redis/utils.pyi
vendored
Normal 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=..., **kwargs): ...
|
||||
def pipeline(redis_obj): ...
|
||||
|
||||
class dummy: ...
|
||||
39
third_party/2/requests/__init__.pyi
vendored
Normal file
39
third_party/2/requests/__init__.pyi
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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
|
||||
__version__ = ... # 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/requests/adapters.pyi
vendored
Normal file
69
third_party/2/requests/adapters.pyi
vendored
Normal 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) -> None: ...
|
||||
# TODO: "request" parameter not actually supported, added to please mypy.
|
||||
def send(self, request=...): ...
|
||||
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=...): ...
|
||||
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=..., stream=..., timeout=..., verify=..., cert=...,
|
||||
proxies=...): ...
|
||||
15
third_party/2/requests/api.pyi
vendored
Normal file
15
third_party/2/requests/api.pyi
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Stubs for requests.api (Python 3)
|
||||
|
||||
from typing import Union
|
||||
|
||||
from .models import Response
|
||||
|
||||
def request(method: str, url: str, **kwargs) -> Response: ...
|
||||
def get(url: Union[str, unicode], **kwargs) -> Response: ...
|
||||
def options(url: Union[str, unicode], **kwargs) -> Response: ...
|
||||
def head(url: Union[str, unicode], **kwargs) -> Response: ...
|
||||
def post(url: Union[str, unicode], data=..., json=...,
|
||||
**kwargs) -> Response: ...
|
||||
def put(url: Union[str, unicode], data=..., **kwargs) -> Response: ...
|
||||
def patch(url: Union[str, unicode], data=..., **kwargs) -> Response: ...
|
||||
def delete(url: Union[str, unicode], **kwargs) -> Response: ...
|
||||
41
third_party/2/requests/auth.pyi
vendored
Normal file
41
third_party/2/requests/auth.pyi
vendored
Normal 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) -> None: ...
|
||||
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) -> None: ...
|
||||
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/requests/compat.pyi
vendored
Normal file
6
third_party/2/requests/compat.pyi
vendored
Normal 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/requests/cookies.pyi
vendored
Normal file
61
third_party/2/requests/cookies.pyi
vendored
Normal 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) -> None: ...
|
||||
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=...): ...
|
||||
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) -> None: ...
|
||||
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=..., path=...): ...
|
||||
|
||||
class CookieConflictError(RuntimeError): ...
|
||||
|
||||
class RequestsCookieJar(MutableMapping):
|
||||
def get(self, name, default=..., domain=..., path=...): ...
|
||||
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=..., path=...): ...
|
||||
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=..., overwrite=...): ...
|
||||
def merge_cookies(cookiejar, cookies): ...
|
||||
26
third_party/2/requests/exceptions.pyi
vendored
Normal file
26
third_party/2/requests/exceptions.pyi
vendored
Normal 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) -> None: ...
|
||||
|
||||
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/requests/hooks.pyi
vendored
Normal file
8
third_party/2/requests/hooks.pyi
vendored
Normal 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/requests/models.pyi
vendored
Normal file
133
third_party/2/requests/models.pyi
vendored
Normal 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=..., url=..., headers=..., files=..., data=..., params=...,
|
||||
auth=..., cookies=..., hooks=..., json=...): ...
|
||||
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) -> None: ...
|
||||
def prepare(self, method=..., url=..., headers=..., files=..., data=..., params=...,
|
||||
auth=..., cookies=..., hooks=..., json=...): ...
|
||||
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=...): ...
|
||||
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 = ...,
|
||||
decode_unicode: bool = ...) -> Iterator[Any]: ...
|
||||
def iter_lines(self, chunk_size=..., decode_unicode=..., delimiter=...): ...
|
||||
@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: ...
|
||||
8
third_party/2/requests/packages/__init__.pyi
vendored
Normal file
8
third_party/2/requests/packages/__init__.pyi
vendored
Normal 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) -> None: ...
|
||||
def find_module(self, fullname, path=...): ...
|
||||
def load_module(self, name): ...
|
||||
12
third_party/2/requests/packages/urllib3/__init__.pyi
vendored
Normal file
12
third_party/2/requests/packages/urllib3/__init__.pyi
vendored
Normal 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=...): ...
|
||||
51
third_party/2/requests/packages/urllib3/_collections.pyi
vendored
Normal file
51
third_party/2/requests/packages/urllib3/_collections.pyi
vendored
Normal 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=..., 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=..., **kwargs) -> None: ...
|
||||
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=...): ...
|
||||
51
third_party/2/requests/packages/urllib3/connection.pyi
vendored
Normal file
51
third_party/2/requests/packages/urllib3/connection.pyi
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
# Stubs for requests.packages.urllib3.connection (Python 3.4)
|
||||
|
||||
from typing import Any
|
||||
from httplib import HTTPException
|
||||
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) -> None: ...
|
||||
def connect(self): ...
|
||||
|
||||
class HTTPSConnection(HTTPConnection):
|
||||
default_port = ... # type: Any
|
||||
key_file = ... # type: Any
|
||||
cert_file = ... # type: Any
|
||||
def __init__(self, host, port=..., key_file=..., cert_file=..., strict=..., timeout=..., **kw) -> None: ...
|
||||
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=..., cert_file=..., cert_reqs=..., ca_certs=..., assert_hostname=..., assert_fingerprint=...): ...
|
||||
sock = ... # type: Any
|
||||
auto_open = ... # type: Any
|
||||
is_verified = ... # type: Any
|
||||
def connect(self): ...
|
||||
|
||||
UnverifiedHTTPSConnection = ... # type: Any
|
||||
|
||||
class ConnectionError(Exception): pass
|
||||
87
third_party/2/requests/packages/urllib3/connectionpool.pyi
vendored
Normal file
87
third_party/2/requests/packages/urllib3/connectionpool.pyi
vendored
Normal 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 ssl import SSLError as BaseSSLError
|
||||
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
|
||||
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=..., strict=..., timeout=..., maxsize=..., block=..., headers=..., retries=..., _proxy=..., _proxy_headers=..., **conn_kw) -> None: ...
|
||||
def close(self): ...
|
||||
def is_same_host(self, url): ...
|
||||
def urlopen(self, method, url, body=..., headers=..., retries=..., redirect=..., assert_same_host=..., timeout=..., pool_timeout=..., release_conn=..., **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=..., strict=..., timeout=..., maxsize=..., block=..., headers=..., retries=..., _proxy=..., _proxy_headers=..., key_file=..., cert_file=..., cert_reqs=..., ca_certs=..., ssl_version=..., assert_hostname=..., assert_fingerprint=..., **conn_kw) -> None: ...
|
||||
|
||||
def connection_from_url(url, **kw): ...
|
||||
4
third_party/2/requests/packages/urllib3/contrib/__init__.pyi
vendored
Normal file
4
third_party/2/requests/packages/urllib3/contrib/__init__.pyi
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Stubs for requests.packages.urllib3.contrib (Python 3.4)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
54
third_party/2/requests/packages/urllib3/exceptions.pyi
vendored
Normal file
54
third_party/2/requests/packages/urllib3/exceptions.pyi
vendored
Normal 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) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class RequestError(PoolError):
|
||||
url = ... # type: Any
|
||||
def __init__(self, pool, url, message) -> None: ...
|
||||
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=...) -> None: ...
|
||||
|
||||
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) -> None: ...
|
||||
|
||||
class ResponseError(HTTPError):
|
||||
GENERIC_ERROR = ... # type: Any
|
||||
SPECIFIC_ERROR = ... # type: Any
|
||||
|
||||
class SecurityWarning(HTTPWarning): ...
|
||||
class InsecureRequestWarning(SecurityWarning): ...
|
||||
class SystemTimeWarning(SecurityWarning): ...
|
||||
class InsecurePlatformWarning(SecurityWarning): ...
|
||||
16
third_party/2/requests/packages/urllib3/fields.pyi
vendored
Normal file
16
third_party/2/requests/packages/urllib3/fields.pyi
vendored
Normal 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=..., headers=...) -> None: ...
|
||||
@classmethod
|
||||
def from_tuples(cls, fieldname, value): ...
|
||||
def render_headers(self): ...
|
||||
def make_multipart(self, content_disposition=..., content_type=..., content_location=...): ...
|
||||
19
third_party/2/requests/packages/urllib3/filepost.pyi
vendored
Normal file
19
third_party/2/requests/packages/urllib3/filepost.pyi
vendored
Normal 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=...): ...
|
||||
4
third_party/2/requests/packages/urllib3/packages/__init__.pyi
vendored
Normal file
4
third_party/2/requests/packages/urllib3/packages/__init__.pyi
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Stubs for requests.packages.urllib3.packages (Python 3.4)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
1
third_party/2/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyi
vendored
Normal file
1
third_party/2/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyi
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class CertificateError(ValueError): pass
|
||||
7
third_party/2/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyi
vendored
Normal file
7
third_party/2/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyi
vendored
Normal 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): ...
|
||||
31
third_party/2/requests/packages/urllib3/poolmanager.pyi
vendored
Normal file
31
third_party/2/requests/packages/urllib3/poolmanager.pyi
vendored
Normal 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=..., headers=..., **connection_pool_kw) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
def clear(self): ...
|
||||
def connection_from_host(self, host, port=..., 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=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
|
||||
|
||||
class ProxyManager(PoolManager):
|
||||
proxy = ... # type: Any
|
||||
proxy_headers = ... # type: Any
|
||||
def __init__(self, proxy_url, num_pools=..., headers=..., proxy_headers=..., **connection_pool_kw) -> None: ...
|
||||
def connection_from_host(self, host, port=..., 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=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
|
||||
|
||||
def proxy_from_url(url, **kw): ...
|
||||
13
third_party/2/requests/packages/urllib3/request.pyi
vendored
Normal file
13
third_party/2/requests/packages/urllib3/request.pyi
vendored
Normal 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=..., headers=..., encode_multipart=..., multipart_boundary=..., **kw): ...
|
||||
def request(self, method, url, fields=..., headers=..., **urlopen_kw): ...
|
||||
def request_encode_url(self, method, url, fields=..., **urlopen_kw): ...
|
||||
def request_encode_body(self, method, url, fields=..., headers=..., encode_multipart=..., multipart_boundary=..., **urlopen_kw): ...
|
||||
58
third_party/2/requests/packages/urllib3/response.pyi
vendored
Normal file
58
third_party/2/requests/packages/urllib3/response.pyi
vendored
Normal 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) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def decompress(self, data): ...
|
||||
|
||||
class GzipDecoder:
|
||||
def __init__(self) -> None: ...
|
||||
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=..., status=..., version=..., reason=..., strict=..., preload_content=..., decode_content=..., original_response=..., pool=..., connection=...) -> None: ...
|
||||
def get_redirect_location(self): ...
|
||||
def release_conn(self): ...
|
||||
@property
|
||||
def data(self): ...
|
||||
def tell(self): ...
|
||||
def read(self, amt=..., decode_content=..., cache_content=...): ...
|
||||
def stream(self, amt=..., decode_content=...): ...
|
||||
@classmethod
|
||||
def from_httplib(ResponseCls, r, **response_kw): ...
|
||||
def getheaders(self): ...
|
||||
def getheader(self, name, default=...): ...
|
||||
def close(self): ...
|
||||
@property
|
||||
def closed(self): ...
|
||||
def fileno(self): ...
|
||||
def flush(self): ...
|
||||
def readable(self): ...
|
||||
def readinto(self, b): ...
|
||||
7
third_party/2/requests/packages/urllib3/util/__init__.pyi
vendored
Normal file
7
third_party/2/requests/packages/urllib3/util/__init__.pyi
vendored
Normal 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
|
||||
|
||||
11
third_party/2/requests/packages/urllib3/util/connection.pyi
vendored
Normal file
11
third_party/2/requests/packages/urllib3/util/connection.pyi
vendored
Normal 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=..., socket_options=...): ...
|
||||
12
third_party/2/requests/packages/urllib3/util/request.pyi
vendored
Normal file
12
third_party/2/requests/packages/urllib3/util/request.pyi
vendored
Normal 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=..., accept_encoding=..., user_agent=..., basic_auth=..., proxy_basic_auth=..., disable_cache=...): ...
|
||||
5
third_party/2/requests/packages/urllib3/util/response.pyi
vendored
Normal file
5
third_party/2/requests/packages/urllib3/util/response.pyi
vendored
Normal 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): ...
|
||||
36
third_party/2/requests/packages/urllib3/util/retry.pyi
vendored
Normal file
36
third_party/2/requests/packages/urllib3/util/retry.pyi
vendored
Normal 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=..., connect=..., read=..., redirect=..., method_whitelist=..., status_forcelist=..., backoff_factor=..., raise_on_redirect=..., _observed_errors=...) -> None: ...
|
||||
def new(self, **kw): ...
|
||||
@classmethod
|
||||
def from_int(cls, retries, redirect=..., default=...): ...
|
||||
def get_backoff_time(self): ...
|
||||
def sleep(self): ...
|
||||
def is_forced_retry(self, method, status_code): ...
|
||||
def is_exhausted(self): ...
|
||||
def increment(self, method=..., url=..., response=..., error=..., _pool=..., _stacktrace=...): ...
|
||||
24
third_party/2/requests/packages/urllib3/util/timeout.pyi
vendored
Normal file
24
third_party/2/requests/packages/urllib3/util/timeout.pyi
vendored
Normal 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=..., connect=..., read=...) -> None: ...
|
||||
@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): ...
|
||||
26
third_party/2/requests/packages/urllib3/util/url.pyi
vendored
Normal file
26
third_party/2/requests/packages/urllib3/util/url.pyi
vendored
Normal 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=..., auth=..., host=..., port=..., path=..., query=..., fragment=...): ...
|
||||
@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): ...
|
||||
104
third_party/2/requests/sessions.pyi
vendored
Normal file
104
third_party/2/requests/sessions.pyi
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
# Stubs for requests.sessions (Python 2.7)
|
||||
|
||||
from typing import Any, Union, MutableMapping, Text, Optional, IO, Tuple, Callable
|
||||
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=..., timeout=..., verify=..., cert=...,
|
||||
proxies=...): ...
|
||||
def rebuild_auth(self, prepared_request, response): ...
|
||||
def rebuild_proxies(self, prepared_request, proxies): ...
|
||||
|
||||
class Session(SessionRedirectMixin):
|
||||
__attrs__ = ... # type: Any
|
||||
headers = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
auth = ... # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]]
|
||||
proxies = ... # type: Optional[MutableMapping[Text, Text]]
|
||||
hooks = ... # type: Optional[MutableMapping[Text, Callable[[Request], Any]]]
|
||||
params = ... # type: Union[None, bytes, MutableMapping[Text, Text]]
|
||||
stream = ... # type: bool
|
||||
verify = ... # type: bool
|
||||
cert = ... # type: Union[None, Text, Tuple[Text, Text]]
|
||||
max_redirects = ... # type: int
|
||||
trust_env = ... # type: bool
|
||||
cookies = ... # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]]
|
||||
adapters = ... # type: MutableMapping
|
||||
redirect_cache = ... # type: RecentlyUsedContainer
|
||||
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, # type: Union[None, bytes, MutableMapping[Text, Text]]
|
||||
data, # type: Union[None, bytes, MutableMapping[Text, Text], IO]
|
||||
headers, # type: Optional[MutableMapping[Text, Text]]
|
||||
cookies, # type: Union[None, RequestsCookieJar, MutableMapping[Text, Text]]
|
||||
files, # type: Optional[MutableMapping[Text, IO]]
|
||||
auth, # type: Union[None, Tuple[Text, Text], Callable[[Request], Request]]
|
||||
timeout, # type: Union[None, float, Tuple[float, float]]
|
||||
allow_redirects, # type: Optional[bool]
|
||||
proxies, # type: Optional[MutableMapping[Text, Text]]
|
||||
hooks, # type: Optional[MutableMapping[Text, Callable[[Request], Any]]]
|
||||
stream, # type: Optional[bool]
|
||||
verify, # type: Optional[bool]
|
||||
cert, # type: Union[Text, Tuple[Text, Text], None]
|
||||
json # type: Optional[MutableMapping]
|
||||
) -> 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=..., json=..., **kwargs) -> Response: ...
|
||||
def put(self, url: str, data=..., **kwargs) -> Response: ...
|
||||
def patch(self, url: str, data=..., **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: ...
|
||||
8
third_party/2/requests/status_codes.pyi
vendored
Normal file
8
third_party/2/requests/status_codes.pyi
vendored
Normal 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/requests/structures.pyi
vendored
Normal file
21
third_party/2/requests/structures.pyi
vendored
Normal 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=..., **kwargs) -> None: ...
|
||||
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=...): ...
|
||||
52
third_party/2/requests/utils.pyi
vendored
Normal file
52
third_party/2/requests/utils.pyi
vendored
Normal 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=...): ...
|
||||
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/routes/__init__.pyi
vendored
Normal file
19
third_party/2/routes/__init__.pyi
vendored
Normal 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=...): ...
|
||||
|
||||
Mapper = mapper.Mapper
|
||||
redirect_to = util.redirect_to
|
||||
url_for = util.url_for
|
||||
URLGenerator = util.URLGenerator
|
||||
70
third_party/2/routes/mapper.pyi
vendored
Normal file
70
third_party/2/routes/mapper.pyi
vendored
Normal 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=..., member_prefix=..., controller=..., collection_actions=..., member_actions=..., member_options=..., **kwargs): ...
|
||||
|
||||
class SubMapper(SubMapperParent):
|
||||
kwargs = ... # type: Any
|
||||
obj = ... # type: Any
|
||||
collection_name = ... # type: Any
|
||||
member = ... # type: Any
|
||||
resource_name = ... # type: Any
|
||||
formatted = ... # type: Any
|
||||
def __init__(self, obj, resource_name=..., collection_name=..., actions=..., formatted=..., **kwargs) -> None: ...
|
||||
def connect(self, *args, **kwargs): ...
|
||||
def link(self, rel=..., name=..., action=..., method=..., formatted=..., **kwargs): ...
|
||||
def new(self, **kwargs): ...
|
||||
def edit(self, **kwargs): ...
|
||||
def action(self, name=..., action=..., method=..., formatted=..., **kwargs): ...
|
||||
def index(self, name=..., **kwargs): ...
|
||||
def show(self, name=..., **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=..., always_scan=..., register=..., explicit=...) -> None: ...
|
||||
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=..., environ=...): ...
|
||||
def routematch(self, url=..., environ=...): ...
|
||||
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/routes/util.pyi
vendored
Normal file
24
third_party/2/routes/util.pyi
vendored
Normal 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) -> None: ...
|
||||
def __call__(self, *args, **kargs): ...
|
||||
def current(self, *args, **kwargs): ...
|
||||
|
||||
def redirect_to(*args, **kargs): ...
|
||||
def cache_hostinfo(environ): ...
|
||||
def controller_scan(directory=...): ...
|
||||
def as_unicode(value, encoding, errors=...): ...
|
||||
def ascii_characters(string): ...
|
||||
0
third_party/2/scribe/__init__.pyi
vendored
Normal file
0
third_party/2/scribe/__init__.pyi
vendored
Normal file
43
third_party/2/scribe/scribe.pyi
vendored
Normal file
43
third_party/2/scribe/scribe.pyi
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# Stubs for scribe.scribe (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
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) -> None: ...
|
||||
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/scribe/ttypes.pyi
vendored
Normal file
22
third_party/2/scribe/ttypes.pyi
vendored
Normal 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=..., message=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
111
third_party/2/selenium/webdriver/remote/webdriver.pyi
vendored
Normal file
111
third_party/2/selenium/webdriver/remote/webdriver.pyi
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
# Stubs for selenium.webdriver.remote.webdriver (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Dict, List
|
||||
from .mobile import Mobile as Mobile
|
||||
from selenium.webdriver.remote.webelement import WebElement
|
||||
from selenium.webdriver.remote.errorhandler import ErrorHandler
|
||||
from selenium.webdriver.remote.file_detector import FileDetector
|
||||
|
||||
Capabilities = Dict[basestring, Any]
|
||||
ExecuteResult = Dict[basestring, Any] # containing 'success', 'value', 'sessionId'
|
||||
|
||||
class WebDriver:
|
||||
command_executor = ... # type: basestring
|
||||
session_id = ... # type: Any
|
||||
capabilities = ... # type: Capabilities
|
||||
error_handler = ... # type: ErrorHandler
|
||||
file_detector = ... # type: FileDetector
|
||||
def __init__(self,
|
||||
command_executor: basestring='',
|
||||
desired_capabilities: Capabilities=None,
|
||||
browser_profile=None,
|
||||
proxy=None,
|
||||
keep_alive:bool=False
|
||||
) -> None: ...
|
||||
@property
|
||||
def mobile(self) -> Mobile: ...
|
||||
@property
|
||||
def name(self) -> basestring: ...
|
||||
def start_client(self): ...
|
||||
def stop_client(self): ...
|
||||
w3c = ... # type: Any
|
||||
def start_session(self, desired_capabilities, browser_profile=None): ...
|
||||
def create_web_element(self, element_id: basestring) -> WebElement: ...
|
||||
def execute(self, driver_command: basestring, params: Optional[Dict[basestring, Any]]=None) -> ExecuteResult: ...
|
||||
def get(self, url: basestring) -> None: ...
|
||||
@property
|
||||
def title(self) -> basestring: ...
|
||||
def find_element_by_id(self, id_: basestring) -> WebElement: ...
|
||||
def find_elements_by_id(self, id_: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_xpath(self, xpath: basestring) -> WebElement: ...
|
||||
def find_elements_by_xpath(self, xpath: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_link_text(self, link_text: basestring) -> WebElement: ...
|
||||
def find_elements_by_link_text(self, text: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_partial_link_text(self, link_text: basestring) -> WebElement: ...
|
||||
def find_elements_by_partial_link_text(self, link_text: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_tag_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_tag_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_class_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_class_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_css_selector(self, css_selector: basestring) -> WebElement: ...
|
||||
def find_elements_by_css_selector(self, css_selector: basestring) -> List[WebElement]: ...
|
||||
def execute_script(self, script, *args): ...
|
||||
def execute_async_script(self, script, *args): ...
|
||||
@property
|
||||
def current_url(self) -> basestring: ...
|
||||
@property
|
||||
def page_source(self): ...
|
||||
def close(self): ...
|
||||
def quit(self): ...
|
||||
@property
|
||||
def current_window_handle(self): ...
|
||||
@property
|
||||
def window_handles(self): ...
|
||||
def maximize_window(self): ...
|
||||
@property
|
||||
def switch_to(self): ...
|
||||
def switch_to_active_element(self): ...
|
||||
def switch_to_window(self, window_name): ...
|
||||
def switch_to_frame(self, frame_reference): ...
|
||||
def switch_to_default_content(self): ...
|
||||
def switch_to_alert(self): ...
|
||||
def back(self): ...
|
||||
def forward(self): ...
|
||||
def refresh(self): ...
|
||||
def get_cookies(self): ...
|
||||
def get_cookie(self, name): ...
|
||||
def delete_cookie(self, name): ...
|
||||
def delete_all_cookies(self): ...
|
||||
def add_cookie(self, cookie_dict): ...
|
||||
def implicitly_wait(self, time_to_wait): ...
|
||||
def set_script_timeout(self, time_to_wait): ...
|
||||
def set_page_load_timeout(self, time_to_wait): ...
|
||||
def find_element(self, by=..., value=None): ...
|
||||
def find_elements(self, by=..., value=None): ...
|
||||
@property
|
||||
def desired_capabilities(self): ...
|
||||
def get_screenshot_as_file(self, filename): ...
|
||||
save_screenshot = ... # type: Any
|
||||
def get_screenshot_as_png(self): ...
|
||||
def get_screenshot_as_base64(self): ...
|
||||
def set_window_size(self, width, height, windowHandle=''): ...
|
||||
def get_window_size(self, windowHandle=''): ...
|
||||
def set_window_position(self, x, y, windowHandle=''): ...
|
||||
def get_window_position(self, windowHandle=''): ...
|
||||
@property
|
||||
def file_detector(self): ...
|
||||
@file_detector.setter
|
||||
def file_detector(self, detector): ...
|
||||
@property
|
||||
def orientation(self): ...
|
||||
@orientation.setter
|
||||
def orientation(self, value): ...
|
||||
@property
|
||||
def application_cache(self): ...
|
||||
@property
|
||||
def log_types(self): ...
|
||||
def get_log(self, log_type): ...
|
||||
65
third_party/2/selenium/webdriver/remote/webelement.pyi
vendored
Normal file
65
third_party/2/selenium/webdriver/remote/webelement.pyi
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
# Stubs for selenium.webdriver.remote.webelement (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from selenium.webdriver.remote.webdriver import WebDriver
|
||||
from typing import Any, Optional, Dict, List
|
||||
|
||||
SizeDict = Dict[str, int] # containing "height", "width"
|
||||
PointDict = Dict[str, int] # containing "x", "y"
|
||||
|
||||
class WebElement:
|
||||
def __init__(self, parent: WebDriver, id_: Optional[basestring], w3c: bool=False) -> None: ...
|
||||
@property
|
||||
def tag_name(self) -> basestring: ...
|
||||
@property
|
||||
def text(self) -> Optional[basestring]: ...
|
||||
def click(self) -> None: ...
|
||||
def submit(self) -> None: ...
|
||||
def clear(self) -> None: ...
|
||||
def get_attribute(self, name: basestring) -> Optional[basestring]: ...
|
||||
def is_selected(self) -> bool: ...
|
||||
def is_enabled(self) -> bool: ...
|
||||
|
||||
def find_element_by_id(self, id_: basestring) -> WebElement: ...
|
||||
def find_elements_by_id(self, id_: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_link_text(self, link_text: basestring) -> WebElement: ...
|
||||
def find_elements_by_link_text(self, link_text: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_partial_link_text(self, link_text: basestring) -> WebElement: ...
|
||||
def find_elements_by_partial_link_text(self, link_text: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_tag_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_tag_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_xpath(self, xpath: basestring) -> WebElement: ...
|
||||
def find_elements_by_xpath(self, xpath: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_class_name(self, name: basestring) -> WebElement: ...
|
||||
def find_elements_by_class_name(self, name: basestring) -> List[WebElement]: ...
|
||||
def find_element_by_css_selector(self, css_selector: basestring) -> WebElement: ...
|
||||
def find_elements_by_css_selector(self, css_selector: basestring) -> List[WebElement]: ...
|
||||
|
||||
def send_keys(self, *value: *basestring) -> None: ...
|
||||
def is_displayed(self) -> bool: ...
|
||||
@property
|
||||
def location_once_scrolled_into_view(self): ...
|
||||
@property
|
||||
def size(self) -> SizeDict: ...
|
||||
def value_of_css_property(self, property_name): ...
|
||||
@property
|
||||
def location(self) -> PointDict: ...
|
||||
@property
|
||||
def rect(self): ...
|
||||
@property
|
||||
def screenshot_as_base64(self): ...
|
||||
@property
|
||||
def screenshot_as_png(self): ...
|
||||
def screenshot(self, filename: basestring): ...
|
||||
@property
|
||||
def parent(self) -> WebDriver: ...
|
||||
@property
|
||||
def id(self) -> Optional[basestring]: ...
|
||||
def __eq__(self, element: object) -> bool: ...
|
||||
def __ne__(self, element: object) -> bool: ...
|
||||
def find_element(self, by: basestring=..., value: basestring=None) -> WebElement: ...
|
||||
def find_elements(self, by: basestring=..., value: basestring=None) -> List[WebElement]: ...
|
||||
def __hash__(self) -> int: ...
|
||||
89
third_party/2/six/__init__.pyi
vendored
Normal file
89
third_party/2/six/__init__.pyi
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
# Stubs for six (Python 2.7)
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from typing import (
|
||||
Any, AnyStr, Callable, Iterable, Mapping, Optional,
|
||||
Pattern, Tuple, TypeVar, Union, overload, ValuesView, KeysView, ItemsView
|
||||
)
|
||||
import typing
|
||||
|
||||
import unittest
|
||||
import types
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_K = TypeVar('_K')
|
||||
_V = TypeVar('_V')
|
||||
|
||||
# TODO make constant, then move this stub to 2and3
|
||||
# https://github.com/python/typeshed/issues/17
|
||||
PY2 = True
|
||||
PY3 = False
|
||||
PY34 = False
|
||||
|
||||
string_types = basestring,
|
||||
integer_types = (int, long)
|
||||
class_types = (type, types.ClassType)
|
||||
text_type = unicode
|
||||
binary_type = str
|
||||
|
||||
MAXSIZE = ... # type: int
|
||||
|
||||
#def add_move
|
||||
#def remove_move
|
||||
|
||||
def advance_iterator(it: typing.Iterator[_T]) -> _T: ...
|
||||
next = advance_iterator
|
||||
|
||||
def callable(obj: object) -> bool: ...
|
||||
|
||||
def get_unbound_function(unbound: types.MethodType) -> types.FunctionType: ...
|
||||
def create_bound_method(func: types.FunctionType, obj: object) -> types.MethodType: ...
|
||||
def create_unbound_method(func: types.FunctionType, cls: Union[type, types.ClassType]) -> types.MethodType: ...
|
||||
|
||||
class Iterator:
|
||||
def next(self) -> Any: ...
|
||||
|
||||
def get_method_function(meth: types.MethodType) -> types.FunctionType: ...
|
||||
def get_method_self(meth: types.MethodType) -> Optional[object]: ...
|
||||
def get_function_closure(fun: types.FunctionType) -> Optional[Tuple[types._Cell, ...]]: ...
|
||||
def get_function_code(fun: types.FunctionType) -> types.CodeType: ...
|
||||
def get_function_defaults(fun: types.FunctionType) -> Optional[Tuple[Any, ...]]: ...
|
||||
def get_function_globals(fun: types.FunctionType) -> Dict[str, Any]: ...
|
||||
|
||||
def iterkeys(d: Mapping[_K, _V]) -> typing.Iterator[_K]: ...
|
||||
def itervalues(d: Mapping[_K, _V]) -> typing.Iterator[_V]: ...
|
||||
def iteritems(d: Mapping[_K, _V]) -> typing.Iterator[Tuple[_K, _V]]: ...
|
||||
#def iterlists
|
||||
|
||||
def viewkeys(d: Mapping[_K, _V]) -> KeysView[_K]: ...
|
||||
def viewvalues(d: Mapping[_K, _V]) -> ValuesView[_V]: ...
|
||||
def viewitems(d: Mapping[_K, _V]) -> ItemsView[_K, _V]: ...
|
||||
|
||||
def b(s: str) -> binary_type: ...
|
||||
def u(s: str) -> text_type: ...
|
||||
from __builtin__ import unichr as unichr
|
||||
int2byte = chr
|
||||
def byte2int(bs: binary_type) -> int: ...
|
||||
def indexbytes(buf: binary_type, i: int) -> int: ...
|
||||
def iterbytes(buf: binary_type) -> typing.Iterator[int]: ...
|
||||
from StringIO import StringIO as StringIO, StringIO as BytesIO
|
||||
|
||||
def assertCountEqual(self: unittest.TestCase, first: Iterable[_T], second: Iterable[_T], msg: str = ...) -> None: ...
|
||||
@overload
|
||||
def assertRaisesRegex(self: unittest.TestCase, msg: str = ...) -> Any: ...
|
||||
@overload
|
||||
def assertRaisesRegex(self: unittest.TestCase, callable_obj: Callable[..., Any], *args: Any, **kwargs: Any) -> Any: ...
|
||||
def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[AnyStr, Pattern[AnyStr]], msg: str = ...) -> None: ...
|
||||
|
||||
def reraise(tp: type, value: Optional[BaseException], tb: Optional[types.TracebackType] = ...) -> None: ...
|
||||
def exec_(_code_: Union[unicode, types.CodeType], _globs_: Dict[str, Any] = ..., _locs_: Dict[str, Any] = ...): ...
|
||||
def raise_from(value: BaseException, from_value: BaseException) -> None: ...
|
||||
|
||||
print_ = print
|
||||
|
||||
from functools import wraps as wraps
|
||||
|
||||
def with_metaclass(meta: type, *bases: type) -> type: ...
|
||||
def add_metaclass(metaclass: type) -> Callable[[_T], _T]: ...
|
||||
def python_2_unicode_compatible(klass: _T) -> _T: ...
|
||||
32
third_party/2/six/moves/__init__.pyi
vendored
Normal file
32
third_party/2/six/moves/__init__.pyi
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# Provisional stubs for six.moves (Python 2.7)
|
||||
|
||||
import Cookie as http_cookies
|
||||
from cStringIO import StringIO as cStringIO
|
||||
from itertools import ifilter as filter
|
||||
from itertools import ifilterfalse as filterfalse
|
||||
from __builtin__ import raw_input as input
|
||||
from __builtin__ import intern as intern
|
||||
from itertools import imap as map
|
||||
from os import getcwdu as getcwd
|
||||
from os import getcwd as getcwdb
|
||||
from __builtin__ import xrange as range
|
||||
from __builtin__ import reload as reload_module
|
||||
from __builtin__ import reduce as reduce
|
||||
from pipes import quote as shlex_quote
|
||||
from StringIO import StringIO as StringIO
|
||||
from UserDict import UserDict as UserDict
|
||||
from UserList import UserList as UserList
|
||||
from UserString import UserString as UserString
|
||||
from __builtin__ import xrange as xrange
|
||||
from itertools import izip as zip
|
||||
from itertools import izip_longest as zip_longest
|
||||
import six.moves.cPickle as cPickle
|
||||
import HTMLParser as html_parser
|
||||
import htmlentitydefs as html_entities
|
||||
import httplib as http_client
|
||||
|
||||
import six.moves.urllib_parse as urllib_parse
|
||||
import six.moves.urllib_error as urllib_error
|
||||
import six.moves.urllib as urllib
|
||||
import six.moves.urllib_robotparser as urllib_robotparser
|
||||
|
||||
6
third_party/2/six/moves/cPickle.pyi
vendored
Normal file
6
third_party/2/six/moves/cPickle.pyi
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.cPickle (Python 2.7)
|
||||
|
||||
from cPickle import *
|
||||
10
third_party/2/six/moves/urllib/__init__.pyi
vendored
Normal file
10
third_party/2/six/moves/urllib/__init__.pyi
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib (Python 2.7)
|
||||
|
||||
import six.moves.urllib.error as error
|
||||
import six.moves.urllib.parse as parse
|
||||
import six.moves.urllib.request as request
|
||||
import six.moves.urllib.response as response
|
||||
import six.moves.urllib.robotparser as robotparser
|
||||
8
third_party/2/six/moves/urllib/error.pyi
vendored
Normal file
8
third_party/2/six/moves/urllib/error.pyi
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib.error (Python 2.7)
|
||||
|
||||
from urllib2 import URLError as URLError
|
||||
from urllib2 import HTTPError as HTTPError
|
||||
from urllib import ContentTooShortError as ContentTooShortError
|
||||
30
third_party/2/six/moves/urllib/parse.pyi
vendored
Normal file
30
third_party/2/six/moves/urllib/parse.pyi
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib.parse (Python 2.7)
|
||||
|
||||
from six.moves.urllib_parse import (
|
||||
ParseResult as ParseResult,
|
||||
SplitResult as SplitResult,
|
||||
parse_qs as parse_qs,
|
||||
parse_qsl as parse_qsl,
|
||||
urldefrag as urldefrag,
|
||||
urljoin as urljoin,
|
||||
urlparse as urlparse,
|
||||
urlsplit as urlsplit,
|
||||
urlunparse as urlunparse,
|
||||
urlunsplit as urlunsplit,
|
||||
quote as quote,
|
||||
quote_plus as quote_plus,
|
||||
unquote as unquote,
|
||||
unquote_plus as unquote_plus,
|
||||
urlencode as urlencode,
|
||||
splitquery as splitquery,
|
||||
splittag as splittag,
|
||||
splituser as splituser,
|
||||
uses_fragment as uses_fragment,
|
||||
uses_netloc as uses_netloc,
|
||||
uses_params as uses_params,
|
||||
uses_query as uses_query,
|
||||
uses_relative as uses_relative,
|
||||
)
|
||||
38
third_party/2/six/moves/urllib/request.pyi
vendored
Normal file
38
third_party/2/six/moves/urllib/request.pyi
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib.request (Python 2.7)
|
||||
|
||||
from urllib2 import urlopen as urlopen
|
||||
from urllib2 import install_opener as install_opener
|
||||
from urllib2 import build_opener as build_opener
|
||||
from urllib import pathname2url as pathname2url
|
||||
from urllib import url2pathname as url2pathname
|
||||
from urllib import getproxies as getproxies
|
||||
from urllib2 import Request as Request
|
||||
from urllib2 import OpenerDirector as OpenerDirector
|
||||
from urllib2 import HTTPDefaultErrorHandler as HTTPDefaultErrorHandler
|
||||
from urllib2 import HTTPRedirectHandler as HTTPRedirectHandler
|
||||
from urllib2 import HTTPCookieProcessor as HTTPCookieProcessor
|
||||
from urllib2 import ProxyHandler as ProxyHandler
|
||||
from urllib2 import BaseHandler as BaseHandler
|
||||
from urllib2 import HTTPPasswordMgr as HTTPPasswordMgr
|
||||
from urllib2 import HTTPPasswordMgrWithDefaultRealm as HTTPPasswordMgrWithDefaultRealm
|
||||
from urllib2 import AbstractBasicAuthHandler as AbstractBasicAuthHandler
|
||||
from urllib2 import HTTPBasicAuthHandler as HTTPBasicAuthHandler
|
||||
from urllib2 import ProxyBasicAuthHandler as ProxyBasicAuthHandler
|
||||
from urllib2 import AbstractDigestAuthHandler as AbstractDigestAuthHandler
|
||||
from urllib2 import HTTPDigestAuthHandler as HTTPDigestAuthHandler
|
||||
from urllib2 import ProxyDigestAuthHandler as ProxyDigestAuthHandler
|
||||
from urllib2 import HTTPHandler as HTTPHandler
|
||||
from urllib2 import HTTPSHandler as HTTPSHandler
|
||||
from urllib2 import FileHandler as FileHandler
|
||||
from urllib2 import FTPHandler as FTPHandler
|
||||
from urllib2 import CacheFTPHandler as CacheFTPHandler
|
||||
from urllib2 import UnknownHandler as UnknownHandler
|
||||
from urllib2 import HTTPErrorProcessor as HTTPErrorProcessor
|
||||
from urllib import urlretrieve as urlretrieve
|
||||
from urllib import urlcleanup as urlcleanup
|
||||
from urllib import URLopener as URLopener
|
||||
from urllib import FancyURLopener as FancyURLopener
|
||||
from urllib import proxy_bypass as proxy_bypass
|
||||
9
third_party/2/six/moves/urllib/response.pyi
vendored
Normal file
9
third_party/2/six/moves/urllib/response.pyi
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib.response (Python 2.7)
|
||||
|
||||
from urllib import addbase as addbase
|
||||
from urllib import addclosehook as addclosehook
|
||||
from urllib import addinfo as addinfo
|
||||
from urllib import addinfourl as addinfourl
|
||||
6
third_party/2/six/moves/urllib/robotparser.pyi
vendored
Normal file
6
third_party/2/six/moves/urllib/robotparser.pyi
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib.robotparser (Python 2.7)
|
||||
|
||||
from robotparser import RobotFileParser as RobotFileParser
|
||||
10
third_party/2/six/moves/urllib_error.pyi
vendored
Normal file
10
third_party/2/six/moves/urllib_error.pyi
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib_error (Python 2.7)
|
||||
|
||||
from six.moves.urllib.error import (
|
||||
URLError as URLError,
|
||||
HTTPError as HTTPError,
|
||||
ContentTooShortError as ContentTooShortError,
|
||||
)
|
||||
28
third_party/2/six/moves/urllib_parse.pyi
vendored
Normal file
28
third_party/2/six/moves/urllib_parse.pyi
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# Generated by stubtool 0.1, DO NOT EDIT
|
||||
# See https://github.com/o11c/stubtool
|
||||
#
|
||||
# Stubs for six.moves.urllib_parse (Python 2.7)
|
||||
|
||||
from urlparse import ParseResult as ParseResult
|
||||
from urlparse import SplitResult as SplitResult
|
||||
from urlparse import parse_qs as parse_qs
|
||||
from urlparse import parse_qsl as parse_qsl
|
||||
from urlparse import urldefrag as urldefrag
|
||||
from urlparse import urljoin as urljoin
|
||||
from urlparse import urlparse as urlparse
|
||||
from urlparse import urlsplit as urlsplit
|
||||
from urlparse import urlunparse as urlunparse
|
||||
from urlparse import urlunsplit as urlunsplit
|
||||
from urllib import quote as quote
|
||||
from urllib import quote_plus as quote_plus
|
||||
from urllib import unquote as unquote
|
||||
from urllib import unquote_plus as unquote_plus
|
||||
from urllib import urlencode as urlencode
|
||||
from urllib import splitquery as splitquery
|
||||
from urllib import splittag as splittag
|
||||
from urllib import splituser as splituser
|
||||
from urlparse import uses_fragment as uses_fragment
|
||||
from urlparse import uses_netloc as uses_netloc
|
||||
from urlparse import uses_params as uses_params
|
||||
from urlparse import uses_query as uses_query
|
||||
from urlparse import uses_relative as uses_relative
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user