mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
Add missing '-> None' to all __init__ methods.
This commit is contained in:
10
third_party/2.7/boto/connection.pyi
vendored
10
third_party/2.7/boto/connection.pyi
vendored
@@ -11,7 +11,7 @@ DEFAULT_CA_CERTS_FILE = ... # type: Any
|
||||
|
||||
class HostConnectionPool:
|
||||
queue = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def size(self): ...
|
||||
def put(self, conn): ...
|
||||
def get(self): ...
|
||||
@@ -23,7 +23,7 @@ class ConnectionPool:
|
||||
host_to_pool = ... # type: Any
|
||||
last_clean_time = ... # type: Any
|
||||
mutex = ... # type: Any
|
||||
def __init__(self): ...
|
||||
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): ...
|
||||
@@ -39,7 +39,7 @@ class HTTPRequest:
|
||||
params = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body): ...
|
||||
def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ...
|
||||
def authorize(self, connection, **kwargs): ...
|
||||
|
||||
class AWSAuthConnection:
|
||||
@@ -62,7 +62,7 @@ class AWSAuthConnection:
|
||||
provider = ... # type: Any
|
||||
auth_service_name = ... # type: Any
|
||||
request_hook = ... # type: Any
|
||||
def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='', provider='', security_token=None, suppress_consec_slashes=True, validate_certs=True, profile_name=None): ...
|
||||
def __init__(self, host, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, path='', provider='', security_token=None, suppress_consec_slashes=True, validate_certs=True, profile_name=None) -> None: ...
|
||||
auth_region_name = ... # type: Any
|
||||
def connection(self): ...
|
||||
def aws_access_key_id(self): ...
|
||||
@@ -98,7 +98,7 @@ class AWSAuthConnection:
|
||||
class AWSQueryConnection(AWSAuthConnection):
|
||||
APIVersion = ... # type: Any
|
||||
ResponseError = ... # type: Any
|
||||
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host=None, debug=0, https_connection_factory=None, path='', security_token=None, validate_certs=True, profile_name=None, provider=''): ...
|
||||
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, host=None, debug=0, https_connection_factory=None, path='', security_token=None, validate_certs=True, profile_name=None, provider='') -> None: ...
|
||||
def get_utf8_value(self, value): ...
|
||||
def make_request(self, action, params=None, path='', verb=''): ...
|
||||
def build_list_params(self, params, items, label): ...
|
||||
|
||||
2
third_party/2.7/boto/ec2/elb/__init__.pyi
vendored
2
third_party/2.7/boto/ec2/elb/__init__.pyi
vendored
@@ -15,7 +15,7 @@ class ELBConnection(AWSQueryConnection):
|
||||
DefaultRegionName = ... # type: Any
|
||||
DefaultRegionEndpoint = ... # type: Any
|
||||
region = ... # type: Any
|
||||
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, region=None, path='', security_token=None, validate_certs=True, profile_name=None): ...
|
||||
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=True, port=None, proxy=None, proxy_port=None, proxy_user=None, proxy_pass=None, debug=0, https_connection_factory=None, region=None, path='', security_token=None, validate_certs=True, profile_name=None) -> None: ...
|
||||
def build_list_params(self, params, items, label): ...
|
||||
def get_all_load_balancers(self, load_balancer_names=None, marker=None): ...
|
||||
def create_load_balancer(self, name, zones, listeners=None, subnets=None, security_groups=None, scheme='', complex_listeners=None): ...
|
||||
|
||||
2
third_party/2.7/croniter.pyi
vendored
2
third_party/2.7/croniter.pyi
vendored
@@ -15,7 +15,7 @@ class croniter:
|
||||
cur = ... # type: Any
|
||||
exprs = ... # type: Any
|
||||
expanded = ... # type: Any
|
||||
def __init__(self, expr_format, start_time=None): ...
|
||||
def __init__(self, expr_format, start_time=None) -> None: ...
|
||||
def get_next(self, ret_type=...): ...
|
||||
def get_prev(self, ret_type=...): ...
|
||||
def get_current(self, ret_type=...): ...
|
||||
|
||||
32
third_party/2.7/fb303/FacebookService.pyi
vendored
32
third_party/2.7/fb303/FacebookService.pyi
vendored
@@ -23,7 +23,7 @@ class Iface:
|
||||
def shutdown(self): ...
|
||||
|
||||
class Client(Iface):
|
||||
def __init__(self, iprot, oprot=None): ...
|
||||
def __init__(self, iprot, oprot=None) -> None: ...
|
||||
def getName(self): ...
|
||||
def send_getName(self): ...
|
||||
def recv_getName(self): ...
|
||||
@@ -63,7 +63,7 @@ class Client(Iface):
|
||||
def send_shutdown(self): ...
|
||||
|
||||
class Processor(Iface, TProcessor):
|
||||
def __init__(self, handler): ...
|
||||
def __init__(self, handler) -> None: ...
|
||||
def process(self, iprot, oprot): ...
|
||||
def process_getName(self, seqid, iprot, oprot): ...
|
||||
def process_getVersion(self, seqid, iprot, oprot): ...
|
||||
@@ -90,7 +90,7 @@ class getName_args:
|
||||
class getName_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -108,7 +108,7 @@ class getVersion_args:
|
||||
class getVersion_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -126,7 +126,7 @@ class getStatus_args:
|
||||
class getStatus_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -144,7 +144,7 @@ class getStatusDetails_args:
|
||||
class getStatusDetails_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -162,7 +162,7 @@ class getCounters_args:
|
||||
class getCounters_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -172,7 +172,7 @@ class getCounters_result:
|
||||
class getCounter_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
def __init__(self, key=None): ...
|
||||
def __init__(self, key=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -182,7 +182,7 @@ class getCounter_args:
|
||||
class getCounter_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -193,7 +193,7 @@ class setOption_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
value = ... # type: Any
|
||||
def __init__(self, key=None, value=None): ...
|
||||
def __init__(self, key=None, value=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -211,7 +211,7 @@ class setOption_result:
|
||||
class getOption_args:
|
||||
thrift_spec = ... # type: Any
|
||||
key = ... # type: Any
|
||||
def __init__(self, key=None): ...
|
||||
def __init__(self, key=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -221,7 +221,7 @@ class getOption_args:
|
||||
class getOption_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -239,7 +239,7 @@ class getOptions_args:
|
||||
class getOptions_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -249,7 +249,7 @@ class getOptions_result:
|
||||
class getCpuProfile_args:
|
||||
thrift_spec = ... # type: Any
|
||||
profileDurationInSec = ... # type: Any
|
||||
def __init__(self, profileDurationInSec=None): ...
|
||||
def __init__(self, profileDurationInSec=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -259,7 +259,7 @@ class getCpuProfile_args:
|
||||
class getCpuProfile_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -277,7 +277,7 @@ class aliveSince_args:
|
||||
class aliveSince_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
|
||||
20
third_party/2.7/google/protobuf/descriptor.pyi
vendored
20
third_party/2.7/google/protobuf/descriptor.pyi
vendored
@@ -13,7 +13,7 @@ class DescriptorMetaclass(type):
|
||||
class DescriptorBase:
|
||||
__metaclass__ = ... # type: Any
|
||||
has_options = ... # type: Any
|
||||
def __init__(self, options, options_class_name): ...
|
||||
def __init__(self, options, options_class_name) -> None: ...
|
||||
def GetOptions(self): ...
|
||||
|
||||
class _NestedDescriptorBase(DescriptorBase):
|
||||
@@ -21,7 +21,7 @@ class _NestedDescriptorBase(DescriptorBase):
|
||||
full_name = ... # type: Any
|
||||
file = ... # type: Any
|
||||
containing_type = ... # type: Any
|
||||
def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None): ...
|
||||
def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=None, serialized_end=None) -> None: ...
|
||||
def GetTopLevelContainingType(self): ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
@@ -42,7 +42,7 @@ class Descriptor(_NestedDescriptorBase):
|
||||
oneofs = ... # type: Any
|
||||
oneofs_by_name = ... # type: Any
|
||||
syntax = ... # type: Any
|
||||
def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None): ...
|
||||
def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=None, is_extendable=True, extension_ranges=None, oneofs=None, file=None, serialized_start=None, serialized_end=None, syntax=None) -> None: ...
|
||||
def EnumValueName(self, enum, value): ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
@@ -100,7 +100,7 @@ class FieldDescriptor(DescriptorBase):
|
||||
is_extension = ... # type: Any
|
||||
extension_scope = ... # type: Any
|
||||
containing_oneof = ... # type: Any
|
||||
def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=None, has_default_value=True, containing_oneof=None): ...
|
||||
def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=None, has_default_value=True, containing_oneof=None) -> None: ...
|
||||
@staticmethod
|
||||
def ProtoTypeToCppProtoType(proto_type): ...
|
||||
|
||||
@@ -109,7 +109,7 @@ class EnumDescriptor(_NestedDescriptorBase):
|
||||
values = ... # type: Any
|
||||
values_by_name = ... # type: Any
|
||||
values_by_number = ... # type: Any
|
||||
def __init__(self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None): ...
|
||||
def __init__(self, name, full_name, filename, values, containing_type=None, options=None, file=None, serialized_start=None, serialized_end=None) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
class EnumValueDescriptor(DescriptorBase):
|
||||
@@ -118,7 +118,7 @@ class EnumValueDescriptor(DescriptorBase):
|
||||
index = ... # type: Any
|
||||
number = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, name, index, number, type=None, options=None): ...
|
||||
def __init__(self, name, index, number, type=None, options=None) -> None: ...
|
||||
|
||||
class OneofDescriptor:
|
||||
def __new__(cls, name, full_name, index, containing_type, fields): ...
|
||||
@@ -127,12 +127,12 @@ class OneofDescriptor:
|
||||
index = ... # type: Any
|
||||
containing_type = ... # type: Any
|
||||
fields = ... # type: Any
|
||||
def __init__(self, name, full_name, index, containing_type, fields): ...
|
||||
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=None, file=None, serialized_start=None, serialized_end=None): ...
|
||||
def __init__(self, name, full_name, index, methods, options=None, file=None, serialized_start=None, serialized_end=None) -> None: ...
|
||||
def FindMethodByName(self, name): ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
@@ -143,7 +143,7 @@ class MethodDescriptor(DescriptorBase):
|
||||
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): ...
|
||||
def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=None) -> None: ...
|
||||
|
||||
class FileDescriptor(DescriptorBase):
|
||||
def __new__(cls, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ...
|
||||
@@ -156,7 +156,7 @@ class FileDescriptor(DescriptorBase):
|
||||
enum_types_by_name = ... # type: Any
|
||||
extensions_by_name = ... # type: Any
|
||||
dependencies = ... # type: Any
|
||||
def __init__(self, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None): ...
|
||||
def __init__(self, name, package, options=None, serialized_pb=None, dependencies=None, syntax=None) -> None: ...
|
||||
def CopyToProto(self, proto): ...
|
||||
|
||||
def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True, syntax=None): ...
|
||||
|
||||
2
third_party/2.7/google/protobuf/message.pyi
vendored
2
third_party/2.7/google/protobuf/message.pyi
vendored
@@ -33,4 +33,4 @@ class Message:
|
||||
def ByteSize(self) -> int: ...
|
||||
|
||||
# TODO: check kwargs
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
class GeneratedProtocolMessageType(type):
|
||||
def __new__(cls, name, bases, dictionary): ...
|
||||
def __init__(cls, name, bases, dictionary): ...
|
||||
def __init__(cls, name, bases, dictionary) -> None: ...
|
||||
|
||||
def ParseMessage(descriptor, byte_str): ...
|
||||
def MakeClass(descriptor): ...
|
||||
|
||||
4
third_party/2.7/kazoo/client.pyi
vendored
4
third_party/2.7/kazoo/client.pyi
vendored
@@ -38,7 +38,7 @@ class KazooClient:
|
||||
SetPartitioner = ... # type: Any
|
||||
Semaphore = ... # type: Any
|
||||
ShallowParty = ... # type: Any
|
||||
def __init__(self, hosts='', timeout=0.0, client_id=None, handler=None, default_acl=None, auth_data=None, read_only=None, randomize_hosts=True, connection_retry=None, command_retry=None, logger=None, **kwargs): ...
|
||||
def __init__(self, hosts='', timeout=0.0, client_id=None, handler=None, default_acl=None, auth_data=None, read_only=None, randomize_hosts=True, connection_retry=None, command_retry=None, logger=None, **kwargs) -> None: ...
|
||||
@property
|
||||
def client_state(self): ...
|
||||
@property
|
||||
@@ -86,7 +86,7 @@ class TransactionRequest:
|
||||
client = ... # type: Any
|
||||
operations = ... # type: Any
|
||||
committed = ... # type: Any
|
||||
def __init__(self, client): ...
|
||||
def __init__(self, client) -> None: ...
|
||||
def create(self, path, value='', acl=None, ephemeral=False, sequence=False): ...
|
||||
def delete(self, path, version=-1): ...
|
||||
def set_data(self, path, value, version=-1): ...
|
||||
|
||||
6
third_party/2.7/kazoo/recipe/watchers.pyi
vendored
6
third_party/2.7/kazoo/recipe/watchers.pyi
vendored
@@ -7,11 +7,11 @@ from typing import Any
|
||||
log = ... # type: Any
|
||||
|
||||
class DataWatch:
|
||||
def __init__(self, client, path, func=None, *args, **kwargs): ...
|
||||
def __init__(self, client, path, func=None, *args, **kwargs) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
class ChildrenWatch:
|
||||
def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False): ...
|
||||
def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False) -> None: ...
|
||||
def __call__(self, func): ...
|
||||
|
||||
class PatientChildrenWatch:
|
||||
@@ -20,6 +20,6 @@ class PatientChildrenWatch:
|
||||
children = ... # type: Any
|
||||
time_boundary = ... # type: Any
|
||||
children_changed = ... # type: Any
|
||||
def __init__(self, client, path, time_boundary=30): ...
|
||||
def __init__(self, client, path, time_boundary=30) -> None: ...
|
||||
asy = ... # type: Any
|
||||
def start(self): ...
|
||||
|
||||
8
third_party/2.7/redis/client.pyi
vendored
8
third_party/2.7/redis/client.pyi
vendored
@@ -41,7 +41,7 @@ class StrictRedis:
|
||||
def from_url(cls, url, db=None, **kwargs): ...
|
||||
connection_pool = ... # type: Any
|
||||
response_callbacks = ... # type: Any
|
||||
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, encoding='', encoding_errors='', charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None): ...
|
||||
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=None, socket_keepalive_options=None, connection_pool=None, unix_socket_path=None, encoding='', encoding_errors='', charset=None, errors=None, decode_responses=False, retry_on_timeout=False, ssl=False, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None) -> None: ...
|
||||
def set_response_callback(self, command, callback): ...
|
||||
def pipeline(self, transaction=True, shard_hint=None): ...
|
||||
def transaction(self, func, *watches, **kwargs): ...
|
||||
@@ -231,7 +231,7 @@ class PubSub:
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
def __init__(self, connection_pool, shard_hint=None, ignore_subscribe_messages=False): ...
|
||||
def __init__(self, connection_pool, shard_hint=None, ignore_subscribe_messages=False) -> None: ...
|
||||
def __del__(self): ...
|
||||
channels = ... # type: Any
|
||||
patterns = ... # type: Any
|
||||
@@ -260,7 +260,7 @@ class BasePipeline:
|
||||
transaction = ... # type: Any
|
||||
shard_hint = ... # type: Any
|
||||
watching = ... # type: Any
|
||||
def __init__(self, connection_pool, response_callbacks, transaction, shard_hint): ...
|
||||
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): ...
|
||||
@@ -289,5 +289,5 @@ class Script:
|
||||
registered_client = ... # type: Any
|
||||
script = ... # type: Any
|
||||
sha = ... # type: Any
|
||||
def __init__(self, registered_client, script): ...
|
||||
def __init__(self, registered_client, script) -> None: ...
|
||||
def __call__(self, keys=..., args=..., client=None): ...
|
||||
|
||||
18
third_party/2.7/redis/connection.pyi
vendored
18
third_party/2.7/redis/connection.pyi
vendored
@@ -18,7 +18,7 @@ SERVER_CLOSED_CONNECTION_ERROR = ... # type: Any
|
||||
|
||||
class Token:
|
||||
value = ... # type: Any
|
||||
def __init__(self, value): ...
|
||||
def __init__(self, value) -> None: ...
|
||||
|
||||
class BaseParser:
|
||||
EXCEPTION_CLASSES = ... # type: Any
|
||||
@@ -28,7 +28,7 @@ class SocketBuffer:
|
||||
socket_read_size = ... # type: Any
|
||||
bytes_written = ... # type: Any
|
||||
bytes_read = ... # type: Any
|
||||
def __init__(self, socket, socket_read_size): ...
|
||||
def __init__(self, socket, socket_read_size) -> None: ...
|
||||
@property
|
||||
def length(self): ...
|
||||
def read(self, length): ...
|
||||
@@ -39,7 +39,7 @@ class SocketBuffer:
|
||||
class PythonParser(BaseParser):
|
||||
encoding = ... # type: Any
|
||||
socket_read_size = ... # type: Any
|
||||
def __init__(self, socket_read_size): ...
|
||||
def __init__(self, socket_read_size) -> None: ...
|
||||
def __del__(self): ...
|
||||
def on_connect(self, connection): ...
|
||||
def on_disconnect(self): ...
|
||||
@@ -48,7 +48,7 @@ class PythonParser(BaseParser):
|
||||
|
||||
class HiredisParser(BaseParser):
|
||||
socket_read_size = ... # type: Any
|
||||
def __init__(self, socket_read_size): ...
|
||||
def __init__(self, socket_read_size) -> None: ...
|
||||
def __del__(self): ...
|
||||
def on_connect(self, connection): ...
|
||||
def on_disconnect(self): ...
|
||||
@@ -72,7 +72,7 @@ class Connection:
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=False, socket_keepalive_options=None, retry_on_timeout=False, encoding='', encoding_errors='', decode_responses=False, parser_class=..., socket_read_size=65536): ...
|
||||
def __init__(self, host='', port=6379, db=0, password=None, socket_timeout=None, socket_connect_timeout=None, socket_keepalive=False, socket_keepalive_options=None, retry_on_timeout=False, encoding='', encoding_errors='', decode_responses=False, parser_class=..., socket_read_size=65536) -> None: ...
|
||||
def __del__(self): ...
|
||||
def register_connect_callback(self, callback): ...
|
||||
def clear_connect_callbacks(self): ...
|
||||
@@ -93,7 +93,7 @@ class SSLConnection(Connection):
|
||||
certfile = ... # type: Any
|
||||
cert_reqs = ... # type: Any
|
||||
ca_certs = ... # type: Any
|
||||
def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None, **kwargs): ...
|
||||
def __init__(self, ssl_keyfile=None, ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None, **kwargs) -> None: ...
|
||||
|
||||
class UnixDomainSocketConnection(Connection):
|
||||
description_format = ... # type: Any
|
||||
@@ -106,7 +106,7 @@ class UnixDomainSocketConnection(Connection):
|
||||
encoding = ... # type: Any
|
||||
encoding_errors = ... # type: Any
|
||||
decode_responses = ... # type: Any
|
||||
def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='', encoding_errors='', decode_responses=False, retry_on_timeout=False, parser_class=..., socket_read_size=65536): ...
|
||||
def __init__(self, path='', db=0, password=None, socket_timeout=None, encoding='', encoding_errors='', decode_responses=False, retry_on_timeout=False, parser_class=..., socket_read_size=65536) -> None: ...
|
||||
|
||||
class ConnectionPool:
|
||||
@classmethod
|
||||
@@ -114,7 +114,7 @@ class ConnectionPool:
|
||||
connection_class = ... # type: Any
|
||||
connection_kwargs = ... # type: Any
|
||||
max_connections = ... # type: Any
|
||||
def __init__(self, connection_class=..., max_connections=None, **connection_kwargs): ...
|
||||
def __init__(self, connection_class=..., max_connections=None, **connection_kwargs) -> None: ...
|
||||
pid = ... # type: Any
|
||||
def reset(self): ...
|
||||
def get_connection(self, command_name, *keys, **options): ...
|
||||
@@ -125,7 +125,7 @@ class ConnectionPool:
|
||||
class BlockingConnectionPool(ConnectionPool):
|
||||
queue_class = ... # type: Any
|
||||
timeout = ... # type: Any
|
||||
def __init__(self, max_connections=50, timeout=20, connection_class=..., queue_class=..., **connection_kwargs): ...
|
||||
def __init__(self, max_connections=50, timeout=20, connection_class=..., queue_class=..., **connection_kwargs) -> None: ...
|
||||
pid = ... # type: Any
|
||||
pool = ... # type: Any
|
||||
def reset(self): ...
|
||||
|
||||
2
third_party/2.7/requests/adapters.pyi
vendored
2
third_party/2.7/requests/adapters.pyi
vendored
@@ -42,7 +42,7 @@ DEFAULT_POOLSIZE = ... # type: Any
|
||||
DEFAULT_RETRIES = ... # type: Any
|
||||
|
||||
class BaseAdapter:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
# TODO: "request" parameter not actually supported, added to please mypy.
|
||||
def send(self, request=None): ...
|
||||
def close(self): ...
|
||||
|
||||
4
third_party/2.7/requests/auth.pyi
vendored
4
third_party/2.7/requests/auth.pyi
vendored
@@ -20,7 +20,7 @@ class AuthBase:
|
||||
class HTTPBasicAuth(AuthBase):
|
||||
username = ... # type: Any
|
||||
password = ... # type: Any
|
||||
def __init__(self, username, password): ...
|
||||
def __init__(self, username, password) -> None: ...
|
||||
def __call__(self, r): ...
|
||||
|
||||
class HTTPProxyAuth(HTTPBasicAuth):
|
||||
@@ -34,7 +34,7 @@ class HTTPDigestAuth(AuthBase):
|
||||
chal = ... # type: Any
|
||||
pos = ... # type: Any
|
||||
num_401_calls = ... # type: Any
|
||||
def __init__(self, username, password): ...
|
||||
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): ...
|
||||
|
||||
4
third_party/2.7/requests/cookies.pyi
vendored
4
third_party/2.7/requests/cookies.pyi
vendored
@@ -6,7 +6,7 @@ from . import compat
|
||||
|
||||
class MockRequest:
|
||||
type = ... # type: Any
|
||||
def __init__(self, request): ...
|
||||
def __init__(self, request) -> None: ...
|
||||
def get_type(self): ...
|
||||
def get_host(self): ...
|
||||
def get_origin_req_host(self): ...
|
||||
@@ -25,7 +25,7 @@ class MockRequest:
|
||||
def host(self): ...
|
||||
|
||||
class MockResponse:
|
||||
def __init__(self, headers): ...
|
||||
def __init__(self, headers) -> None: ...
|
||||
def info(self): ...
|
||||
def getheaders(self, name): ...
|
||||
|
||||
|
||||
2
third_party/2.7/requests/exceptions.pyi
vendored
2
third_party/2.7/requests/exceptions.pyi
vendored
@@ -6,7 +6,7 @@ from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
|
||||
class RequestException(IOError):
|
||||
response = ... # type: Any
|
||||
request = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class HTTPError(RequestException): ...
|
||||
class ConnectionError(RequestException): ...
|
||||
|
||||
2
third_party/2.7/requests/models.pyi
vendored
2
third_party/2.7/requests/models.pyi
vendored
@@ -82,7 +82,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
hooks = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None,
|
||||
auth=None, cookies=None, hooks=None, json=None): ...
|
||||
def copy(self): ...
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
class VendorAlias:
|
||||
def __init__(self, package_names): ...
|
||||
def __init__(self, package_names) -> None: ...
|
||||
def find_module(self, fullname, path=None): ...
|
||||
def load_module(self, name): ...
|
||||
|
||||
@@ -13,7 +13,7 @@ class RecentlyUsedContainer(MutableMapping):
|
||||
ContainerCls = ... # type: Any
|
||||
dispose_func = ... # type: Any
|
||||
lock = ... # type: Any
|
||||
def __init__(self, maxsize=10, dispose_func=None): ...
|
||||
def __init__(self, maxsize=10, dispose_func=None) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
@@ -23,7 +23,7 @@ class RecentlyUsedContainer(MutableMapping):
|
||||
def keys(self): ...
|
||||
|
||||
class HTTPHeaderDict(dict):
|
||||
def __init__(self, headers=None, **kwargs): ...
|
||||
def __init__(self, headers=None, **kwargs) -> None: ...
|
||||
def __setitem__(self, key, val): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
|
||||
@@ -21,14 +21,14 @@ class HTTPConnection(object):
|
||||
is_verified = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
socket_options = ... # type: Any
|
||||
def __init__(self, *args, **kw): ...
|
||||
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=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw): ...
|
||||
def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw) -> None: ...
|
||||
sock = ... # type: Any
|
||||
def connect(self): ...
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ class ConnectionPool:
|
||||
QueueCls = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
def __init__(self, host, port=None): ...
|
||||
def __init__(self, host, port=None) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
def close(self): ...
|
||||
@@ -67,7 +67,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
|
||||
num_connections = ... # type: Any
|
||||
num_requests = ... # type: Any
|
||||
conn_kw = ... # type: Any
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw): ...
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw) -> None: ...
|
||||
def close(self): ...
|
||||
def is_same_host(self, url): ...
|
||||
def urlopen(self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=..., pool_timeout=None, release_conn=None, **response_kw): ...
|
||||
@@ -82,6 +82,6 @@ class HTTPSConnectionPool(HTTPConnectionPool):
|
||||
ssl_version = ... # type: Any
|
||||
assert_hostname = ... # type: Any
|
||||
assert_fingerprint = ... # type: Any
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw): ...
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw) -> None: ...
|
||||
|
||||
def connection_from_url(url, **kw): ...
|
||||
|
||||
@@ -9,12 +9,12 @@ class HTTPWarning(Warning): ...
|
||||
|
||||
class PoolError(HTTPError):
|
||||
pool = ... # type: Any
|
||||
def __init__(self, pool, message): ...
|
||||
def __init__(self, pool, message) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class RequestError(PoolError):
|
||||
url = ... # type: Any
|
||||
def __init__(self, pool, url, message): ...
|
||||
def __init__(self, pool, url, message) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class SSLError(HTTPError): ...
|
||||
@@ -26,11 +26,11 @@ ConnectionError = ... # type: Any
|
||||
|
||||
class MaxRetryError(RequestError):
|
||||
reason = ... # type: Any
|
||||
def __init__(self, pool, url, reason=None): ...
|
||||
def __init__(self, pool, url, reason=None) -> None: ...
|
||||
|
||||
class HostChangedError(RequestError):
|
||||
retries = ... # type: Any
|
||||
def __init__(self, pool, url, retries=3): ...
|
||||
def __init__(self, pool, url, retries=3) -> None: ...
|
||||
|
||||
class TimeoutStateError(HTTPError): ...
|
||||
class TimeoutError(HTTPError): ...
|
||||
@@ -42,7 +42,7 @@ class LocationValueError(ValueError, HTTPError): ...
|
||||
|
||||
class LocationParseError(LocationValueError):
|
||||
location = ... # type: Any
|
||||
def __init__(self, location): ...
|
||||
def __init__(self, location) -> None: ...
|
||||
|
||||
class ResponseError(HTTPError):
|
||||
GENERIC_ERROR = ... # type: Any
|
||||
|
||||
@@ -9,7 +9,7 @@ def format_header_param(name, value): ...
|
||||
class RequestField:
|
||||
data = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
def __init__(self, name, data, filename=None, headers=None): ...
|
||||
def __init__(self, name, data, filename=None, headers=None) -> None: ...
|
||||
@classmethod
|
||||
def from_tuples(cls, fieldname, value): ...
|
||||
def render_headers(self): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class PoolManager(RequestMethods):
|
||||
proxy = ... # type: Any
|
||||
connection_pool_kw = ... # type: Any
|
||||
pools = ... # type: Any
|
||||
def __init__(self, num_pools=10, headers=None, **connection_pool_kw): ...
|
||||
def __init__(self, num_pools=10, headers=None, **connection_pool_kw) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
def clear(self): ...
|
||||
@@ -22,7 +22,7 @@ class PoolManager(RequestMethods):
|
||||
class ProxyManager(PoolManager):
|
||||
proxy = ... # type: Any
|
||||
proxy_headers = ... # type: Any
|
||||
def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw): ...
|
||||
def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw) -> None: ...
|
||||
def connection_from_host(self, host, port=None, scheme=''): ...
|
||||
# TODO: This was the original signature -- copied another one from base class to fix complaint.
|
||||
# def urlopen(self, method, url, redirect=True, **kw): ...
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import Any
|
||||
|
||||
class RequestMethods:
|
||||
headers = ... # type: Any
|
||||
def __init__(self, headers=None): ...
|
||||
def __init__(self, headers=None) -> None: ...
|
||||
def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ...
|
||||
def request(self, method, url, fields=None, headers=None, **urlopen_kw): ...
|
||||
def request_encode_url(self, method, url, fields=None, **urlopen_kw): ...
|
||||
|
||||
@@ -19,12 +19,12 @@ PY3 = True # six.PY3
|
||||
is_fp_closed = response.is_fp_closed
|
||||
|
||||
class DeflateDecoder:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def decompress(self, data): ...
|
||||
|
||||
class GzipDecoder:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def decompress(self, data): ...
|
||||
|
||||
@@ -37,7 +37,7 @@ class HTTPResponse(IO[Any]):
|
||||
reason = ... # type: Any
|
||||
strict = ... # type: Any
|
||||
decode_content = ... # type: Any
|
||||
def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None): ...
|
||||
def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None) -> None: ...
|
||||
def get_redirect_location(self): ...
|
||||
def release_conn(self): ...
|
||||
@property
|
||||
|
||||
@@ -25,7 +25,7 @@ class Retry:
|
||||
method_whitelist = ... # type: Any
|
||||
backoff_factor = ... # type: Any
|
||||
raise_on_redirect = ... # type: Any
|
||||
def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0): ...
|
||||
def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0) -> None: ...
|
||||
def new(self, **kw): ...
|
||||
@classmethod
|
||||
def from_int(cls, retries, redirect=True, default=None): ...
|
||||
|
||||
@@ -12,7 +12,7 @@ def current_time(): ...
|
||||
class Timeout:
|
||||
DEFAULT_TIMEOUT = ... # type: Any
|
||||
total = ... # type: Any
|
||||
def __init__(self, total=None, connect=..., read=...): ...
|
||||
def __init__(self, total=None, connect=..., read=...) -> None: ...
|
||||
@classmethod
|
||||
def from_float(cls, timeout): ...
|
||||
def clone(self): ...
|
||||
|
||||
4
third_party/2.7/requests/structures.pyi
vendored
4
third_party/2.7/requests/structures.pyi
vendored
@@ -4,7 +4,7 @@ from typing import Any
|
||||
import collections
|
||||
|
||||
class CaseInsensitiveDict(collections.MutableMapping):
|
||||
def __init__(self, data=None, **kwargs): ...
|
||||
def __init__(self, data=None, **kwargs) -> None: ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
@@ -16,6 +16,6 @@ class CaseInsensitiveDict(collections.MutableMapping):
|
||||
|
||||
class LookupDict(dict):
|
||||
name = ... # type: Any
|
||||
def __init__(self, name=None): ...
|
||||
def __init__(self, name=None) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def get(self, key, default=None): ...
|
||||
|
||||
4
third_party/2.7/routes/mapper.pyi
vendored
4
third_party/2.7/routes/mapper.pyi
vendored
@@ -20,7 +20,7 @@ class SubMapper(SubMapperParent):
|
||||
member = ... # type: Any
|
||||
resource_name = ... # type: Any
|
||||
formatted = ... # type: Any
|
||||
def __init__(self, obj, resource_name=None, collection_name=None, actions=None, formatted=None, **kwargs): ...
|
||||
def __init__(self, obj, resource_name=None, collection_name=None, actions=None, formatted=None, **kwargs) -> None: ...
|
||||
def connect(self, *args, **kwargs): ...
|
||||
def link(self, rel=None, name=None, action=None, method='', formatted=None, **kwargs): ...
|
||||
def new(self, **kwargs): ...
|
||||
@@ -56,7 +56,7 @@ class Mapper(SubMapperParent):
|
||||
hardcode_names = ... # type: Any
|
||||
minimization = ... # type: Any
|
||||
create_regs_lock = ... # type: Any
|
||||
def __init__(self, controller_scan=..., directory=None, always_scan=False, register=True, explicit=True): ...
|
||||
def __init__(self, controller_scan=..., directory=None, always_scan=False, register=True, explicit=True) -> None: ...
|
||||
environ = ... # type: Any
|
||||
def extend(self, routes, path_prefix=''): ...
|
||||
def make_route(self, *args, **kargs): ...
|
||||
|
||||
2
third_party/2.7/routes/util.pyi
vendored
2
third_party/2.7/routes/util.pyi
vendored
@@ -13,7 +13,7 @@ def url_for(*args, **kargs): ...
|
||||
class URLGenerator:
|
||||
mapper = ... # type: Any
|
||||
environ = ... # type: Any
|
||||
def __init__(self, mapper, environ): ...
|
||||
def __init__(self, mapper, environ) -> None: ...
|
||||
def __call__(self, *args, **kargs): ...
|
||||
def current(self, *args, **kwargs): ...
|
||||
|
||||
|
||||
8
third_party/2.7/scribe/scribe.pyi
vendored
8
third_party/2.7/scribe/scribe.pyi
vendored
@@ -12,20 +12,20 @@ class Iface(fb303.FacebookService.Iface):
|
||||
def Log(self, messages): ...
|
||||
|
||||
class Client(fb303.FacebookService.Client, Iface):
|
||||
def __init__(self, iprot, oprot=None): ...
|
||||
def __init__(self, iprot, oprot=None) -> None: ...
|
||||
def Log(self, messages): ...
|
||||
def send_Log(self, messages): ...
|
||||
def recv_Log(self): ...
|
||||
|
||||
class Processor(fb303.FacebookService.Processor, Iface, TProcessor):
|
||||
def __init__(self, handler): ...
|
||||
def __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 __init__(self, messages=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
@@ -35,7 +35,7 @@ class Log_args:
|
||||
class Log_result:
|
||||
thrift_spec = ... # type: Any
|
||||
success = ... # type: Any
|
||||
def __init__(self, success=None): ...
|
||||
def __init__(self, success=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
|
||||
2
third_party/2.7/scribe/ttypes.pyi
vendored
2
third_party/2.7/scribe/ttypes.pyi
vendored
@@ -14,7 +14,7 @@ class LogEntry:
|
||||
thrift_spec = ... # type: Any
|
||||
category = ... # type: Any
|
||||
message = ... # type: Any
|
||||
def __init__(self, category=None, message=None): ...
|
||||
def __init__(self, category=None, message=None) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
|
||||
@@ -26,15 +26,15 @@ SET_RE = ... # type: Any
|
||||
class _NumericType:
|
||||
unsigned = ... # type: Any
|
||||
zerofill = ... # type: Any
|
||||
def __init__(self, unsigned=False, zerofill=False, **kw): ...
|
||||
def __init__(self, unsigned=False, zerofill=False, **kw) -> None: ...
|
||||
|
||||
class _FloatType(_NumericType, sqltypes.Float):
|
||||
scale = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ...
|
||||
|
||||
class _IntegerType(_NumericType, sqltypes.Integer):
|
||||
display_width = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class _StringType(sqltypes.String):
|
||||
charset = ... # type: Any
|
||||
@@ -42,110 +42,110 @@ class _StringType(sqltypes.String):
|
||||
unicode = ... # type: Any
|
||||
binary = ... # type: Any
|
||||
national = ... # type: Any
|
||||
def __init__(self, charset=None, collation=None, ascii=False, binary=False, unicode=False, national=False, **kw): ...
|
||||
def __init__(self, charset=None, collation=None, ascii=False, binary=False, unicode=False, national=False, **kw) -> None: ...
|
||||
|
||||
class _MatchType(sqltypes.Float, sqltypes.MatchType):
|
||||
def __init__(self, **kw): ...
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
class NUMERIC(_NumericType, sqltypes.NUMERIC):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ...
|
||||
|
||||
class DECIMAL(_NumericType, sqltypes.DECIMAL):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ...
|
||||
|
||||
class DOUBLE(_FloatType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ...
|
||||
|
||||
class REAL(_FloatType, sqltypes.REAL):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=True, **kw) -> None: ...
|
||||
|
||||
class FLOAT(_FloatType, sqltypes.FLOAT):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=None, scale=None, asdecimal=False, **kw): ...
|
||||
def __init__(self, precision=None, scale=None, asdecimal=False, **kw) -> None: ...
|
||||
def bind_processor(self, dialect): ...
|
||||
|
||||
class INTEGER(_IntegerType, sqltypes.INTEGER):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class BIGINT(_IntegerType, sqltypes.BIGINT):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class MEDIUMINT(_IntegerType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class TINYINT(_IntegerType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class SMALLINT(_IntegerType, sqltypes.SMALLINT):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=None, **kw): ...
|
||||
def __init__(self, display_width=None, **kw) -> None: ...
|
||||
|
||||
class BIT(sqltypes.TypeEngine):
|
||||
__visit_name__ = ... # type: Any
|
||||
length = ... # type: Any
|
||||
def __init__(self, length=None): ...
|
||||
def __init__(self, length=None) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIME(sqltypes.TIME):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=False, fsp=None): ...
|
||||
def __init__(self, timezone=False, fsp=None) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIMESTAMP(sqltypes.TIMESTAMP):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=False, fsp=None): ...
|
||||
def __init__(self, timezone=False, fsp=None) -> None: ...
|
||||
|
||||
class DATETIME(sqltypes.DATETIME):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=False, fsp=None): ...
|
||||
def __init__(self, timezone=False, fsp=None) -> None: ...
|
||||
|
||||
class YEAR(sqltypes.TypeEngine):
|
||||
__visit_name__ = ... # type: Any
|
||||
display_width = ... # type: Any
|
||||
def __init__(self, display_width=None): ...
|
||||
def __init__(self, display_width=None) -> None: ...
|
||||
|
||||
class TEXT(_StringType, sqltypes.TEXT):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=None, **kw): ...
|
||||
def __init__(self, length=None, **kw) -> None: ...
|
||||
|
||||
class TINYTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class MEDIUMTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class LONGTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs): ...
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class VARCHAR(_StringType, sqltypes.VARCHAR):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=None, **kwargs): ...
|
||||
def __init__(self, length=None, **kwargs) -> None: ...
|
||||
|
||||
class CHAR(_StringType, sqltypes.CHAR):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=None, **kwargs): ...
|
||||
def __init__(self, length=None, **kwargs) -> None: ...
|
||||
|
||||
class NVARCHAR(_StringType, sqltypes.NVARCHAR):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=None, **kwargs): ...
|
||||
def __init__(self, length=None, **kwargs) -> None: ...
|
||||
|
||||
class NCHAR(_StringType, sqltypes.NCHAR):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=None, **kwargs): ...
|
||||
def __init__(self, length=None, **kwargs) -> None: ...
|
||||
|
||||
class TINYBLOB(sqltypes._Binary):
|
||||
__visit_name__ = ... # type: Any
|
||||
@@ -161,7 +161,7 @@ class _EnumeratedValues(_StringType): ...
|
||||
class ENUM(sqltypes.Enum, _EnumeratedValues):
|
||||
__visit_name__ = ... # type: Any
|
||||
strict = ... # type: Any
|
||||
def __init__(self, *enums, **kw): ...
|
||||
def __init__(self, *enums, **kw) -> None: ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def adapt(self, cls, **kw): ...
|
||||
|
||||
@@ -169,7 +169,7 @@ class SET(_EnumeratedValues):
|
||||
__visit_name__ = ... # type: Any
|
||||
retrieve_as_bitwise = ... # type: Any
|
||||
values = ... # type: Any
|
||||
def __init__(self, *values, **kw): ...
|
||||
def __init__(self, *values, **kw) -> None: ...
|
||||
def column_expression(self, colexpr): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
@@ -281,7 +281,7 @@ class MySQLTypeCompiler(compiler.GenericTypeCompiler):
|
||||
|
||||
class MySQLIdentifierPreparer(compiler.IdentifierPreparer):
|
||||
reserved_words = ... # type: Any
|
||||
def __init__(self, dialect, server_ansiquotes=False, **kw): ...
|
||||
def __init__(self, dialect, server_ansiquotes=False, **kw) -> None: ...
|
||||
|
||||
class MySQLDialect(default.DefaultDialect):
|
||||
name = ... # type: Any
|
||||
@@ -302,7 +302,7 @@ class MySQLDialect(default.DefaultDialect):
|
||||
preparer = ... # type: Any
|
||||
construct_arguments = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
def __init__(self, isolation_level=None, **kwargs): ...
|
||||
def __init__(self, isolation_level=None, **kwargs) -> None: ...
|
||||
def on_connect(self): ...
|
||||
def set_isolation_level(self, connection, level): ...
|
||||
def get_isolation_level(self, connection): ...
|
||||
@@ -334,17 +334,17 @@ class ReflectedState:
|
||||
table_name = ... # type: Any
|
||||
keys = ... # type: Any
|
||||
constraints = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class MySQLTableDefinitionParser:
|
||||
dialect = ... # type: Any
|
||||
preparer = ... # type: Any
|
||||
def __init__(self, dialect, preparer): ...
|
||||
def __init__(self, dialect, preparer) -> None: ...
|
||||
def parse(self, show_create, charset): ...
|
||||
|
||||
class _DecodingRowProxy:
|
||||
rowproxy = ... # type: Any
|
||||
charset = ... # type: Any
|
||||
def __init__(self, rowproxy, charset): ...
|
||||
def __init__(self, rowproxy, charset) -> None: ...
|
||||
def __getitem__(self, index): ...
|
||||
def __getattr__(self, attr): ...
|
||||
|
||||
@@ -8,7 +8,7 @@ import base
|
||||
strategies = ... # type: Any
|
||||
|
||||
class EngineStrategy:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def create(self, *args, **kwargs): ...
|
||||
|
||||
class DefaultEngineStrategy(EngineStrategy):
|
||||
@@ -27,7 +27,7 @@ class MockEngineStrategy(EngineStrategy):
|
||||
def create(self, name_or_url, executor, **kwargs): ...
|
||||
class MockConnection(base.Connectable):
|
||||
execute = ... # type: Any
|
||||
def __init__(self, dialect, execute): ...
|
||||
def __init__(self, dialect, execute) -> None: ...
|
||||
engine = ... # type: Any
|
||||
dialect = ... # type: Any
|
||||
name = ... # type: Any
|
||||
|
||||
2
third_party/2.7/sqlalchemy/engine/url.pyi
vendored
2
third_party/2.7/sqlalchemy/engine/url.pyi
vendored
@@ -15,7 +15,7 @@ class URL:
|
||||
port = ... # type: Any
|
||||
database = ... # type: Any
|
||||
query = ... # type: Any
|
||||
def __init__(self, drivername, username=None, password=None, host=None, port=None, database=None, query=None): ...
|
||||
def __init__(self, drivername, username=None, password=None, host=None, port=None, database=None, query=None) -> None: ...
|
||||
def __to_string__(self, hide_password=True): ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
|
||||
12
third_party/2.7/sqlalchemy/exc.pyi
vendored
12
third_party/2.7/sqlalchemy/exc.pyi
vendored
@@ -13,13 +13,13 @@ class AmbiguousForeignKeysError(ArgumentError): ...
|
||||
class CircularDependencyError(SQLAlchemyError):
|
||||
cycles = ... # type: Any
|
||||
edges = ... # type: Any
|
||||
def __init__(self, message, cycles, edges, msg=None): ...
|
||||
def __init__(self, message, cycles, edges, msg=None) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class CompileError(SQLAlchemyError): ...
|
||||
|
||||
class UnsupportedCompilationError(CompileError):
|
||||
def __init__(self, compiler, element_type): ...
|
||||
def __init__(self, compiler, element_type) -> None: ...
|
||||
|
||||
class IdentifierError(SQLAlchemyError): ...
|
||||
class DisconnectionError(SQLAlchemyError): ...
|
||||
@@ -32,13 +32,13 @@ class NoReferenceError(InvalidRequestError): ...
|
||||
|
||||
class NoReferencedTableError(NoReferenceError):
|
||||
table_name = ... # type: Any
|
||||
def __init__(self, message, tname): ...
|
||||
def __init__(self, message, tname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoReferencedColumnError(NoReferenceError):
|
||||
table_name = ... # type: Any
|
||||
column_name = ... # type: Any
|
||||
def __init__(self, message, tname, cname): ...
|
||||
def __init__(self, message, tname, cname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoSuchTableError(InvalidRequestError): ...
|
||||
@@ -52,7 +52,7 @@ class StatementError(SQLAlchemyError):
|
||||
params = ... # type: Any
|
||||
orig = ... # type: Any
|
||||
detail = ... # type: Any
|
||||
def __init__(self, message, statement, params, orig): ...
|
||||
def __init__(self, message, statement, params, orig) -> None: ...
|
||||
def add_detail(self, msg): ...
|
||||
def __reduce__(self): ...
|
||||
def __unicode__(self): ...
|
||||
@@ -62,7 +62,7 @@ class DBAPIError(StatementError):
|
||||
def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated=False, dialect=None): ...
|
||||
def __reduce__(self): ...
|
||||
connection_invalidated = ... # type: Any
|
||||
def __init__(self, statement, params, orig, connection_invalidated=False): ...
|
||||
def __init__(self, statement, params, orig, connection_invalidated=False) -> None: ...
|
||||
|
||||
class InterfaceError(DBAPIError): ...
|
||||
class DatabaseError(DBAPIError): ...
|
||||
|
||||
6
third_party/2.7/sqlalchemy/orm/session.pyi
vendored
6
third_party/2.7/sqlalchemy/orm/session.pyi
vendored
@@ -15,7 +15,7 @@ class _SessionClassMethods:
|
||||
class SessionTransaction:
|
||||
session = ... # type: Any
|
||||
nested = ... # type: Any
|
||||
def __init__(self, session, parent=None, nested=False): ...
|
||||
def __init__(self, session, parent=None, nested=False) -> None: ...
|
||||
@property
|
||||
def is_active(self): ...
|
||||
def connection(self, bindkey, execution_options=None, **kwargs): ...
|
||||
@@ -36,7 +36,7 @@ class Session(_SessionClassMethods):
|
||||
autocommit = ... # type: Any
|
||||
expire_on_commit = ... # type: Any
|
||||
twophase = ... # type: Any
|
||||
def __init__(self, bind=None, autoflush=True, expire_on_commit=True, _enable_transaction_accounting=True, autocommit=False, twophase=False, weak_identity_map=True, binds=None, extension=None, info=None, query_cls=...): ...
|
||||
def __init__(self, bind=None, autoflush=True, expire_on_commit=True, _enable_transaction_accounting=True, autocommit=False, twophase=False, weak_identity_map=True, binds=None, extension=None, info=None, query_cls=...) -> None: ...
|
||||
connection_callable = ... # type: Any
|
||||
def info(self): ...
|
||||
def begin(self, subtransactions=False, nested=False): ...
|
||||
@@ -85,7 +85,7 @@ class Session(_SessionClassMethods):
|
||||
class sessionmaker(_SessionClassMethods):
|
||||
kw = ... # type: Any
|
||||
class_ = ... # type: Any
|
||||
def __init__(self, bind=None, class_=..., autoflush=True, autocommit=False, expire_on_commit=True, info=None, **kw): ...
|
||||
def __init__(self, bind=None, class_=..., autoflush=True, autocommit=False, expire_on_commit=True, info=None, **kw) -> None: ...
|
||||
def __call__(self, **local_kw): ...
|
||||
def configure(self, **new_kw): ...
|
||||
|
||||
|
||||
14
third_party/2.7/sqlalchemy/pool.pyi
vendored
14
third_party/2.7/sqlalchemy/pool.pyi
vendored
@@ -27,7 +27,7 @@ class _ConnDialect:
|
||||
class Pool(log.Identified):
|
||||
logging_name = ... # type: Any
|
||||
echo = ... # type: Any
|
||||
def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, logging_name=None, reset_on_return=True, listeners=None, events=None, _dispatch=None, _dialect=None): ...
|
||||
def __init__(self, creator, recycle=-1, echo=None, use_threadlocal=False, logging_name=None, reset_on_return=True, listeners=None, events=None, _dispatch=None, _dialect=None) -> None: ...
|
||||
def add_listener(self, listener): ...
|
||||
def unique_connection(self): ...
|
||||
def recreate(self): ...
|
||||
@@ -38,7 +38,7 @@ class Pool(log.Identified):
|
||||
class _ConnectionRecord:
|
||||
connection = ... # type: Any
|
||||
finalize_callback = ... # type: Any
|
||||
def __init__(self, pool): ...
|
||||
def __init__(self, pool) -> None: ...
|
||||
def info(self): ...
|
||||
@classmethod
|
||||
def checkout(cls, pool): ...
|
||||
@@ -50,7 +50,7 @@ class _ConnectionRecord:
|
||||
|
||||
class _ConnectionFairy:
|
||||
connection = ... # type: Any
|
||||
def __init__(self, dbapi_connection, connection_record, echo): ...
|
||||
def __init__(self, dbapi_connection, connection_record, echo) -> None: ...
|
||||
@property
|
||||
def is_valid(self): ...
|
||||
def info(self): ...
|
||||
@@ -63,13 +63,13 @@ class _ConnectionFairy:
|
||||
|
||||
class SingletonThreadPool(Pool):
|
||||
size = ... # type: Any
|
||||
def __init__(self, creator, pool_size=5, **kw): ...
|
||||
def __init__(self, creator, pool_size=5, **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
|
||||
class QueuePool(Pool):
|
||||
def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **kw): ...
|
||||
def __init__(self, creator, pool_size=5, max_overflow=10, timeout=30, **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
@@ -90,7 +90,7 @@ class StaticPool(Pool):
|
||||
def recreate(self): ...
|
||||
|
||||
class AssertionPool(Pool):
|
||||
def __init__(self, *args, **kw): ...
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
def status(self): ...
|
||||
def dispose(self): ...
|
||||
def recreate(self): ...
|
||||
@@ -100,7 +100,7 @@ class _DBProxy:
|
||||
kw = ... # type: Any
|
||||
poolclass = ... # type: Any
|
||||
pools = ... # type: Any
|
||||
def __init__(self, module, poolclass=..., **kw): ...
|
||||
def __init__(self, module, poolclass=..., **kw) -> None: ...
|
||||
def close(self): ...
|
||||
def __del__(self): ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
2
third_party/2.7/sqlalchemy/sql/visitors.pyi
vendored
2
third_party/2.7/sqlalchemy/sql/visitors.pyi
vendored
@@ -5,7 +5,7 @@
|
||||
from typing import Any
|
||||
|
||||
class VisitableType(type):
|
||||
def __init__(cls, clsname, bases, clsdict): ...
|
||||
def __init__(cls, clsname, bases, clsdict) -> None: ...
|
||||
|
||||
class Visitable: ...
|
||||
|
||||
|
||||
26
third_party/2.7/sqlalchemy/util/_collections.pyi
vendored
26
third_party/2.7/sqlalchemy/util/_collections.pyi
vendored
@@ -28,12 +28,12 @@ class ImmutableContainer:
|
||||
class immutabledict(ImmutableContainer, dict):
|
||||
clear = ... # type: Any
|
||||
def __new__(cls, *args): ...
|
||||
def __init__(self, *args): ...
|
||||
def __init__(self, *args) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
def union(self, d): ...
|
||||
|
||||
class Properties:
|
||||
def __init__(self, data): ...
|
||||
def __init__(self, data) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __add__(self, other): ...
|
||||
@@ -53,13 +53,13 @@ class Properties:
|
||||
def clear(self): ...
|
||||
|
||||
class OrderedProperties(Properties):
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class ImmutableProperties(ImmutableContainer, Properties): ...
|
||||
|
||||
class OrderedDict(dict):
|
||||
def __reduce__(self): ...
|
||||
def __init__(self, ____sequence=None, **kwargs): ...
|
||||
def __init__(self, ____sequence=None, **kwargs) -> None: ...
|
||||
def clear(self): ...
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
@@ -79,7 +79,7 @@ class OrderedDict(dict):
|
||||
def popitem(self): ...
|
||||
|
||||
class OrderedSet(set):
|
||||
def __init__(self, d=None): ...
|
||||
def __init__(self, d=None) -> None: ...
|
||||
def add(self, element): ...
|
||||
def remove(self, element): ...
|
||||
def insert(self, pos, element): ...
|
||||
@@ -106,7 +106,7 @@ class OrderedSet(set):
|
||||
__isub__ = ... # type: Any
|
||||
|
||||
class IdentitySet:
|
||||
def __init__(self, iterable=None): ...
|
||||
def __init__(self, iterable=None) -> None: ...
|
||||
def add(self, value): ...
|
||||
def __contains__(self, value): ...
|
||||
def remove(self, value): ...
|
||||
@@ -145,7 +145,7 @@ class IdentitySet:
|
||||
def __hash__(self): ...
|
||||
|
||||
class WeakSequence:
|
||||
def __init__(self, __elements=...): ...
|
||||
def __init__(self, __elements=...) -> None: ...
|
||||
def append(self, item): ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
@@ -154,11 +154,11 @@ class WeakSequence:
|
||||
class OrderedIdentitySet(IdentitySet):
|
||||
class _working_set(OrderedSet):
|
||||
__sa_hash_exempt__ = ... # type: Any
|
||||
def __init__(self, iterable=None): ...
|
||||
def __init__(self, iterable=None) -> None: ...
|
||||
|
||||
class PopulateDict(dict):
|
||||
creator = ... # type: Any
|
||||
def __init__(self, creator): ...
|
||||
def __init__(self, creator) -> None: ...
|
||||
def __missing__(self, key): ...
|
||||
|
||||
column_set = ... # type: Any
|
||||
@@ -170,7 +170,7 @@ def unique_list(seq, hashfunc=None): ...
|
||||
|
||||
class UniqueAppender:
|
||||
data = ... # type: Any
|
||||
def __init__(self, data, via=None): ...
|
||||
def __init__(self, data, via=None) -> None: ...
|
||||
def append(self, item): ...
|
||||
def __iter__(self): ...
|
||||
|
||||
@@ -185,7 +185,7 @@ def flatten_iterator(x): ...
|
||||
class LRUCache(dict):
|
||||
capacity = ... # type: Any
|
||||
threshold = ... # type: Any
|
||||
def __init__(self, capacity=100, threshold=0.0): ...
|
||||
def __init__(self, capacity=100, threshold=0.0) -> None: ...
|
||||
def get(self, key, default=None): ...
|
||||
def __getitem__(self, key): ...
|
||||
def values(self): ...
|
||||
@@ -198,7 +198,7 @@ class ScopedRegistry:
|
||||
createfunc = ... # type: Any
|
||||
scopefunc = ... # type: Any
|
||||
registry = ... # type: Any
|
||||
def __init__(self, createfunc, scopefunc): ...
|
||||
def __init__(self, createfunc, scopefunc) -> None: ...
|
||||
def __call__(self): ...
|
||||
def has(self): ...
|
||||
def set(self, obj): ...
|
||||
@@ -207,7 +207,7 @@ class ScopedRegistry:
|
||||
class ThreadLocalRegistry(ScopedRegistry):
|
||||
createfunc = ... # type: Any
|
||||
registry = ... # type: Any
|
||||
def __init__(self, createfunc): ...
|
||||
def __init__(self, createfunc) -> None: ...
|
||||
def __call__(self): ...
|
||||
def has(self): ...
|
||||
def set(self, obj): ...
|
||||
|
||||
20
third_party/2.7/sqlalchemy/util/langhelpers.pyi
vendored
20
third_party/2.7/sqlalchemy/util/langhelpers.pyi
vendored
@@ -20,7 +20,7 @@ class PluginLoader:
|
||||
group = ... # type: Any
|
||||
impls = ... # type: Any
|
||||
auto_fn = ... # type: Any
|
||||
def __init__(self, group, auto_fn=None): ...
|
||||
def __init__(self, group, auto_fn=None) -> None: ...
|
||||
def load(self, name): ...
|
||||
def register(self, name, modulepath, objname): ...
|
||||
|
||||
@@ -38,7 +38,7 @@ def generic_repr(obj, additional_kw=..., to_inspect=None, omit_kwarg=...): ...
|
||||
class portable_instancemethod:
|
||||
target = ... # type: Any
|
||||
name = ... # type: Any
|
||||
def __init__(self, meth): ...
|
||||
def __init__(self, meth) -> None: ...
|
||||
def __call__(self, *arg, **kw): ...
|
||||
|
||||
def class_hierarchy(cls): ...
|
||||
@@ -51,7 +51,7 @@ class memoized_property:
|
||||
fget = ... # type: Any
|
||||
__doc__ = ... # type: Any
|
||||
__name__ = ... # type: Any
|
||||
def __init__(self, fget, doc=None): ...
|
||||
def __init__(self, fget, doc=None) -> None: ...
|
||||
def __get__(self, obj, cls): ...
|
||||
@classmethod
|
||||
def reset(cls, obj, name): ...
|
||||
@@ -60,7 +60,7 @@ def memoized_instancemethod(fn): ...
|
||||
|
||||
class group_expirable_memoized_property:
|
||||
attributes = ... # type: Any
|
||||
def __init__(self, attributes=...): ...
|
||||
def __init__(self, attributes=...) -> None: ...
|
||||
def expire_instance(self, instance): ...
|
||||
def __call__(self, fn): ...
|
||||
def method(self, fn): ...
|
||||
@@ -72,13 +72,13 @@ def dependency_for(modulename): ...
|
||||
|
||||
class dependencies:
|
||||
import_deps = ... # type: Any
|
||||
def __init__(self, *deps): ...
|
||||
def __init__(self, *deps) -> None: ...
|
||||
def __call__(self, fn): ...
|
||||
@classmethod
|
||||
def resolve_all(cls, path): ...
|
||||
class _importlater:
|
||||
def __new__(cls, path, addtl): ...
|
||||
def __init__(self, path, addtl): ...
|
||||
def __init__(self, path, addtl) -> None: ...
|
||||
def module(self): ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
@@ -94,17 +94,17 @@ def dictlike_iteritems(dictlike): ...
|
||||
|
||||
class classproperty(property):
|
||||
__doc__ = ... # type: Any
|
||||
def __init__(self, fget, *arg, **kw): ...
|
||||
def __init__(self, fget, *arg, **kw) -> None: ...
|
||||
def __get__(desc, self, cls): ...
|
||||
|
||||
class hybridproperty:
|
||||
func = ... # type: Any
|
||||
def __init__(self, func): ...
|
||||
def __init__(self, func) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
|
||||
class hybridmethod:
|
||||
func = ... # type: Any
|
||||
def __init__(self, func): ...
|
||||
def __init__(self, func) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
|
||||
class _symbol(int):
|
||||
@@ -134,4 +134,4 @@ NoneType = ... # type: Any
|
||||
def attrsetter(attrname): ...
|
||||
|
||||
class EnsureKWArgType(type):
|
||||
def __init__(cls, clsname, bases, clsdict): ...
|
||||
def __init__(cls, clsname, bases, clsdict) -> None: ...
|
||||
|
||||
4
third_party/2.7/thrift/Thrift.pyi
vendored
4
third_party/2.7/thrift/Thrift.pyi
vendored
@@ -34,7 +34,7 @@ class TProcessor:
|
||||
|
||||
class TException(Exception):
|
||||
message = ... # type: Any
|
||||
def __init__(self, message=None): ...
|
||||
def __init__(self, message=None) -> None: ...
|
||||
|
||||
class TApplicationException(TException):
|
||||
UNKNOWN = ... # type: Any
|
||||
@@ -49,7 +49,7 @@ class TApplicationException(TException):
|
||||
INVALID_PROTOCOL = ... # type: Any
|
||||
UNSUPPORTED_CLIENT_TYPE = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, type=..., message=None): ...
|
||||
def __init__(self, type=..., message=None) -> None: ...
|
||||
message = ... # type: Any
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
|
||||
@@ -12,7 +12,7 @@ class TBinaryProtocol(TProtocolBase):
|
||||
TYPE_MASK = ... # type: Any
|
||||
strictRead = ... # type: Any
|
||||
strictWrite = ... # type: Any
|
||||
def __init__(self, trans, strictRead=False, strictWrite=True): ...
|
||||
def __init__(self, trans, strictRead=False, strictWrite=True) -> None: ...
|
||||
def writeMessageBegin(self, name, type, seqid): ...
|
||||
def writeMessageEnd(self): ...
|
||||
def writeStructBegin(self, name): ...
|
||||
@@ -56,7 +56,7 @@ class TBinaryProtocol(TProtocolBase):
|
||||
class TBinaryProtocolFactory:
|
||||
strictRead = ... # type: Any
|
||||
strictWrite = ... # type: Any
|
||||
def __init__(self, strictRead=False, strictWrite=True): ...
|
||||
def __init__(self, strictRead=False, strictWrite=True) -> None: ...
|
||||
def getProtocol(self, trans): ...
|
||||
|
||||
class TBinaryProtocolAccelerated(TBinaryProtocol): ...
|
||||
|
||||
@@ -15,11 +15,11 @@ class TProtocolException(TException):
|
||||
NOT_IMPLEMENTED = ... # type: Any
|
||||
DEPTH_LIMIT = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, type=..., message=None): ...
|
||||
def __init__(self, type=..., message=None) -> None: ...
|
||||
|
||||
class TProtocolBase:
|
||||
trans = ... # type: Any
|
||||
def __init__(self, trans): ...
|
||||
def __init__(self, trans) -> None: ...
|
||||
def writeMessageBegin(self, name, ttype, seqid): ...
|
||||
def writeMessageEnd(self): ...
|
||||
def writeStructBegin(self, name): ...
|
||||
|
||||
4
third_party/2.7/thrift/transport/TSocket.pyi
vendored
4
third_party/2.7/thrift/transport/TSocket.pyi
vendored
@@ -14,7 +14,7 @@ class TSocket(TSocketBase):
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
handle = ... # type: Any
|
||||
def __init__(self, host='', port=9090, unix_socket=None, socket_family=...): ...
|
||||
def __init__(self, host='', port=9090, unix_socket=None, socket_family=...) -> None: ...
|
||||
def setHandle(self, h): ...
|
||||
def isOpen(self): ...
|
||||
def setTimeout(self, ms): ...
|
||||
@@ -27,6 +27,6 @@ class TServerSocket(TSocketBase, TServerTransportBase):
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
handle = ... # type: Any
|
||||
def __init__(self, host=None, port=9090, unix_socket=None, socket_family=...): ...
|
||||
def __init__(self, host=None, port=9090, unix_socket=None, socket_family=...) -> None: ...
|
||||
def listen(self): ...
|
||||
def accept(self): ...
|
||||
|
||||
12
third_party/2.7/thrift/transport/TTransport.pyi
vendored
12
third_party/2.7/thrift/transport/TTransport.pyi
vendored
@@ -12,7 +12,7 @@ class TTransportException(TException):
|
||||
TIMED_OUT = ... # type: Any
|
||||
END_OF_FILE = ... # type: Any
|
||||
type = ... # type: Any
|
||||
def __init__(self, type=..., message=None): ...
|
||||
def __init__(self, type=..., message=None) -> None: ...
|
||||
|
||||
class TTransportBase:
|
||||
def isOpen(self): ...
|
||||
@@ -41,7 +41,7 @@ class TBufferedTransportFactory:
|
||||
|
||||
class TBufferedTransport(TTransportBase, CReadableTransport):
|
||||
DEFAULT_BUFFER = ... # type: Any
|
||||
def __init__(self, trans, rbuf_size=...): ...
|
||||
def __init__(self, trans, rbuf_size=...) -> None: ...
|
||||
def isOpen(self): ...
|
||||
def open(self): ...
|
||||
def close(self): ...
|
||||
@@ -53,7 +53,7 @@ class TBufferedTransport(TTransportBase, CReadableTransport):
|
||||
def cstringio_refill(self, partialread, reqlen): ...
|
||||
|
||||
class TMemoryBuffer(TTransportBase, CReadableTransport):
|
||||
def __init__(self, value=None): ...
|
||||
def __init__(self, value=None) -> None: ...
|
||||
def isOpen(self): ...
|
||||
def open(self): ...
|
||||
def close(self): ...
|
||||
@@ -69,7 +69,7 @@ class TFramedTransportFactory:
|
||||
def getTransport(self, trans): ...
|
||||
|
||||
class TFramedTransport(TTransportBase, CReadableTransport):
|
||||
def __init__(self, trans): ...
|
||||
def __init__(self, trans) -> None: ...
|
||||
def isOpen(self): ...
|
||||
def open(self): ...
|
||||
def close(self): ...
|
||||
@@ -83,7 +83,7 @@ class TFramedTransport(TTransportBase, CReadableTransport):
|
||||
|
||||
class TFileObjectTransport(TTransportBase):
|
||||
fileobj = ... # type: Any
|
||||
def __init__(self, fileobj): ...
|
||||
def __init__(self, fileobj) -> None: ...
|
||||
def isOpen(self): ...
|
||||
def close(self): ...
|
||||
def read(self, sz): ...
|
||||
@@ -98,7 +98,7 @@ class TSaslClientTransport(TTransportBase, CReadableTransport):
|
||||
COMPLETE = ... # type: Any
|
||||
transport = ... # type: Any
|
||||
sasl = ... # type: Any
|
||||
def __init__(self, transport, host, service, mechanism='', **sasl_kwargs): ...
|
||||
def __init__(self, transport, host, service, mechanism='', **sasl_kwargs) -> None: ...
|
||||
def open(self): ...
|
||||
def send_sasl_msg(self, status, body): ...
|
||||
def recv_sasl_msg(self): ...
|
||||
|
||||
4
third_party/2.7/tornado/concurrent.pyi
vendored
4
third_party/2.7/tornado/concurrent.pyi
vendored
@@ -11,13 +11,13 @@ class ReturnValueIgnoredError(Exception): ...
|
||||
class _TracebackLogger:
|
||||
exc_info = ... # type: Any
|
||||
formatted_tb = ... # type: Any
|
||||
def __init__(self, exc_info): ...
|
||||
def __init__(self, exc_info) -> None: ...
|
||||
def activate(self): ...
|
||||
def clear(self): ...
|
||||
def __del__(self): ...
|
||||
|
||||
class Future:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def cancel(self): ...
|
||||
def cancelled(self): ...
|
||||
def running(self): ...
|
||||
|
||||
16
third_party/2.7/tornado/gen.pyi
vendored
16
third_party/2.7/tornado/gen.pyi
vendored
@@ -19,11 +19,11 @@ def coroutine(func, replace_callback=True): ...
|
||||
|
||||
class Return(Exception):
|
||||
value = ... # type: Any
|
||||
def __init__(self, value=None): ...
|
||||
def __init__(self, value=None) -> None: ...
|
||||
|
||||
class WaitIterator:
|
||||
current_index = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def done(self): ...
|
||||
def next(self): ...
|
||||
|
||||
@@ -34,7 +34,7 @@ class YieldPoint:
|
||||
|
||||
class Callback(YieldPoint):
|
||||
key = ... # type: Any
|
||||
def __init__(self, key): ...
|
||||
def __init__(self, key) -> None: ...
|
||||
runner = ... # type: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
@@ -42,7 +42,7 @@ class Callback(YieldPoint):
|
||||
|
||||
class Wait(YieldPoint):
|
||||
key = ... # type: Any
|
||||
def __init__(self, key): ...
|
||||
def __init__(self, key) -> None: ...
|
||||
runner = ... # type: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
@@ -50,7 +50,7 @@ class Wait(YieldPoint):
|
||||
|
||||
class WaitAll(YieldPoint):
|
||||
keys = ... # type: Any
|
||||
def __init__(self, keys): ...
|
||||
def __init__(self, keys) -> None: ...
|
||||
runner = ... # type: Any
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
@@ -61,7 +61,7 @@ def Task(func, *args, **kwargs): ...
|
||||
class YieldFuture(YieldPoint):
|
||||
future = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
def __init__(self, future, io_loop=None): ...
|
||||
def __init__(self, future, io_loop=None) -> None: ...
|
||||
runner = ... # type: Any
|
||||
key = ... # type: Any
|
||||
result_fn = ... # type: Any
|
||||
@@ -74,7 +74,7 @@ class Multi(YieldPoint):
|
||||
children = ... # type: Any
|
||||
unfinished_children = ... # type: Any
|
||||
quiet_exceptions = ... # type: Any
|
||||
def __init__(self, children, quiet_exceptions=...): ...
|
||||
def __init__(self, children, quiet_exceptions=...) -> None: ...
|
||||
def start(self, runner): ...
|
||||
def is_ready(self): ...
|
||||
def get_result(self): ...
|
||||
@@ -98,7 +98,7 @@ class Runner:
|
||||
had_exception = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
stack_context_deactivate = ... # type: Any
|
||||
def __init__(self, gen, result_future, first_yielded): ...
|
||||
def __init__(self, gen, result_future, first_yielded) -> None: ...
|
||||
def register_callback(self, key): ...
|
||||
def is_ready(self, key): ...
|
||||
def set_result(self, key, result): ...
|
||||
|
||||
10
third_party/2.7/tornado/httpclient.pyi
vendored
10
third_party/2.7/tornado/httpclient.pyi
vendored
@@ -6,7 +6,7 @@ from typing import Any
|
||||
from tornado.util import Configurable
|
||||
|
||||
class HTTPClient:
|
||||
def __init__(self, async_client_class=None, **kwargs): ...
|
||||
def __init__(self, async_client_class=None, **kwargs) -> None: ...
|
||||
def __del__(self): ...
|
||||
def close(self): ...
|
||||
def fetch(self, request, **kwargs): ...
|
||||
@@ -58,7 +58,7 @@ class HTTPRequest:
|
||||
ssl_options = ... # type: Any
|
||||
expect_100_continue = ... # type: Any
|
||||
start_time = ... # type: Any
|
||||
def __init__(self, url, method='', headers=None, body=None, auth_username=None, auth_password=None, auth_mode=None, connect_timeout=None, request_timeout=None, if_modified_since=None, follow_redirects=None, max_redirects=None, user_agent=None, use_gzip=None, network_interface=None, streaming_callback=None, header_callback=None, prepare_curl_callback=None, proxy_host=None, proxy_port=None, proxy_username=None, proxy_password=None, allow_nonstandard_methods=None, validate_cert=None, ca_certs=None, allow_ipv6=None, client_key=None, client_cert=None, body_producer=None, expect_100_continue=False, decompress_response=None, ssl_options=None): ...
|
||||
def __init__(self, url, method='', headers=None, body=None, auth_username=None, auth_password=None, auth_mode=None, connect_timeout=None, request_timeout=None, if_modified_since=None, follow_redirects=None, max_redirects=None, user_agent=None, use_gzip=None, network_interface=None, streaming_callback=None, header_callback=None, prepare_curl_callback=None, proxy_host=None, proxy_port=None, proxy_username=None, proxy_password=None, allow_nonstandard_methods=None, validate_cert=None, ca_certs=None, allow_ipv6=None, client_key=None, client_cert=None, body_producer=None, expect_100_continue=False, decompress_response=None, ssl_options=None) -> None: ...
|
||||
@property
|
||||
def headers(self): ...
|
||||
@headers.setter
|
||||
@@ -94,19 +94,19 @@ class HTTPResponse:
|
||||
error = ... # type: Any
|
||||
request_time = ... # type: Any
|
||||
time_info = ... # type: Any
|
||||
def __init__(self, request, code, headers=None, buffer=None, effective_url=None, error=None, request_time=None, time_info=None, reason=None): ...
|
||||
def __init__(self, request, code, headers=None, buffer=None, effective_url=None, error=None, request_time=None, time_info=None, reason=None) -> None: ...
|
||||
body = ... # type: Any
|
||||
def rethrow(self): ...
|
||||
|
||||
class HTTPError(Exception):
|
||||
code = ... # type: Any
|
||||
response = ... # type: Any
|
||||
def __init__(self, code, message=None, response=None): ...
|
||||
def __init__(self, code, message=None, response=None) -> None: ...
|
||||
|
||||
class _RequestProxy:
|
||||
request = ... # type: Any
|
||||
defaults = ... # type: Any
|
||||
def __init__(self, request, defaults): ...
|
||||
def __init__(self, request, defaults) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
|
||||
def main(): ...
|
||||
|
||||
6
third_party/2.7/tornado/httpserver.pyi
vendored
6
third_party/2.7/tornado/httpserver.pyi
vendored
@@ -8,7 +8,7 @@ from tornado.tcpserver import TCPServer
|
||||
from tornado.util import Configurable
|
||||
|
||||
class HTTPServer(TCPServer, Configurable, httputil.HTTPServerConnectionDelegate):
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
request_callback = ... # type: Any
|
||||
no_keep_alive = ... # type: Any
|
||||
xheaders = ... # type: Any
|
||||
@@ -29,14 +29,14 @@ class _HTTPRequestContext:
|
||||
protocol = ... # type: Any
|
||||
address_family = ... # type: Any
|
||||
remote_ip = ... # type: Any
|
||||
def __init__(self, stream, address, protocol): ...
|
||||
def __init__(self, stream, address, protocol) -> None: ...
|
||||
|
||||
class _ServerRequestAdapter(httputil.HTTPMessageDelegate):
|
||||
server = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
request = ... # type: Any
|
||||
delegate = ... # type: Any
|
||||
def __init__(self, server, server_conn, request_conn): ...
|
||||
def __init__(self, server, server_conn, request_conn) -> None: ...
|
||||
def headers_received(self, start_line, headers): ...
|
||||
def data_received(self, chunk): ...
|
||||
def finish(self): ...
|
||||
|
||||
6
third_party/2.7/tornado/httputil.pyi
vendored
6
third_party/2.7/tornado/httputil.pyi
vendored
@@ -11,11 +11,11 @@ class SSLError(Exception): ...
|
||||
class _NormalizedHeaderCache(dict):
|
||||
size = ... # type: Any
|
||||
queue = ... # type: Any
|
||||
def __init__(self, size): ...
|
||||
def __init__(self, size) -> None: ...
|
||||
def __missing__(self, key): ...
|
||||
|
||||
class HTTPHeaders(dict):
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def add(self, name, value): ...
|
||||
def get_list(self, name): ...
|
||||
def get_all(self): ...
|
||||
@@ -46,7 +46,7 @@ class HTTPServerRequest:
|
||||
arguments = ... # type: Any
|
||||
query_arguments = ... # type: Any
|
||||
body_arguments = ... # type: Any
|
||||
def __init__(self, method=None, uri=None, version='', headers=None, body=None, host=None, files=None, connection=None, start_line=None): ...
|
||||
def __init__(self, method=None, uri=None, version='', headers=None, body=None, host=None, files=None, connection=None, start_line=None) -> None: ...
|
||||
def supports_http_1_1(self): ...
|
||||
@property
|
||||
def cookies(self): ...
|
||||
|
||||
4
third_party/2.7/tornado/ioloop.pyi
vendored
4
third_party/2.7/tornado/ioloop.pyi
vendored
@@ -74,7 +74,7 @@ class _Timeout:
|
||||
deadline = ... # type: Any
|
||||
callback = ... # type: Any
|
||||
tiebreaker = ... # type: Any
|
||||
def __init__(self, deadline, callback, io_loop): ...
|
||||
def __init__(self, deadline, callback, io_loop) -> None: ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
|
||||
@@ -82,7 +82,7 @@ class PeriodicCallback:
|
||||
callback = ... # type: Any
|
||||
callback_time = ... # type: Any
|
||||
io_loop = ... # type: Any
|
||||
def __init__(self, callback, callback_time, io_loop=None): ...
|
||||
def __init__(self, callback, callback_time, io_loop=None) -> None: ...
|
||||
def start(self): ...
|
||||
def stop(self): ...
|
||||
def is_running(self): ...
|
||||
|
||||
2
third_party/2.7/tornado/tcpserver.pyi
vendored
2
third_party/2.7/tornado/tcpserver.pyi
vendored
@@ -11,7 +11,7 @@ class TCPServer:
|
||||
ssl_options = ... # type: Any
|
||||
max_buffer_size = ... # type: Any
|
||||
read_chunk_size = ... # type: Any
|
||||
def __init__(self, io_loop=None, ssl_options=None, max_buffer_size=None, read_chunk_size=None): ...
|
||||
def __init__(self, io_loop=None, ssl_options=None, max_buffer_size=None, read_chunk_size=None) -> None: ...
|
||||
def listen(self, port, address=''): ...
|
||||
def add_sockets(self, sockets): ...
|
||||
def add_socket(self, socket): ...
|
||||
|
||||
4
third_party/2.7/tornado/util.pyi
vendored
4
third_party/2.7/tornado/util.pyi
vendored
@@ -12,7 +12,7 @@ class ObjectDict(dict):
|
||||
|
||||
class GzipDecompressor:
|
||||
decompressobj = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def decompress(self, value, max_length=None): ...
|
||||
@property
|
||||
def unconsumed_tail(self): ...
|
||||
@@ -42,7 +42,7 @@ class Configurable:
|
||||
class ArgReplacer:
|
||||
name = ... # type: Any
|
||||
arg_pos = ... # type: Any
|
||||
def __init__(self, func, name): ...
|
||||
def __init__(self, func, name) -> None: ...
|
||||
def get_old_value(self, args, kwargs, default=None): ...
|
||||
def replace(self, new_value, args, kwargs): ...
|
||||
|
||||
|
||||
22
third_party/2.7/tornado/web.pyi
vendored
22
third_party/2.7/tornado/web.pyi
vendored
@@ -17,7 +17,7 @@ class RequestHandler:
|
||||
path_args = ... # type: Any
|
||||
path_kwargs = ... # type: Any
|
||||
ui = ... # type: Any
|
||||
def __init__(self, application, request, **kwargs): ...
|
||||
def __init__(self, application, request, **kwargs) -> None: ...
|
||||
def initialize(self): ...
|
||||
@property
|
||||
def settings(self): ...
|
||||
@@ -104,7 +104,7 @@ class Application(httputil.HTTPServerConnectionDelegate):
|
||||
settings = ... # type: Any
|
||||
ui_modules = ... # type: Any
|
||||
ui_methods = ... # type: Any
|
||||
def __init__(self, handlers=None, default_host='', transforms=None, **settings): ...
|
||||
def __init__(self, handlers=None, default_host='', transforms=None, **settings) -> None: ...
|
||||
def listen(self, port, address='', **kwargs): ...
|
||||
def add_handlers(self, host_pattern, host_handlers): ...
|
||||
def add_transform(self, transform_class): ...
|
||||
@@ -122,7 +122,7 @@ class _RequestDispatcher(httputil.HTTPMessageDelegate):
|
||||
handler_kwargs = ... # type: Any
|
||||
path_args = ... # type: Any
|
||||
path_kwargs = ... # type: Any
|
||||
def __init__(self, application, connection): ...
|
||||
def __init__(self, application, connection) -> None: ...
|
||||
def headers_received(self, start_line, headers): ...
|
||||
stream_request_body = ... # type: Any
|
||||
def set_request(self, request): ...
|
||||
@@ -137,13 +137,13 @@ class HTTPError(Exception):
|
||||
log_message = ... # type: Any
|
||||
args = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
def __init__(self, status_code, log_message=None, *args, **kwargs): ...
|
||||
def __init__(self, status_code, log_message=None, *args, **kwargs) -> None: ...
|
||||
|
||||
class Finish(Exception): ...
|
||||
|
||||
class MissingArgumentError(HTTPError):
|
||||
arg_name = ... # type: Any
|
||||
def __init__(self, arg_name): ...
|
||||
def __init__(self, arg_name) -> None: ...
|
||||
|
||||
class ErrorHandler(RequestHandler):
|
||||
def initialize(self, status_code): ...
|
||||
@@ -193,14 +193,14 @@ class FallbackHandler(RequestHandler):
|
||||
def prepare(self): ...
|
||||
|
||||
class OutputTransform:
|
||||
def __init__(self, request): ...
|
||||
def __init__(self, request) -> None: ...
|
||||
def transform_first_chunk(self, status_code, headers, chunk, finishing): ...
|
||||
def transform_chunk(self, chunk, finishing): ...
|
||||
|
||||
class GZipContentEncoding(OutputTransform):
|
||||
CONTENT_TYPES = ... # type: Any
|
||||
MIN_LENGTH = ... # type: Any
|
||||
def __init__(self, request): ...
|
||||
def __init__(self, request) -> None: ...
|
||||
def transform_first_chunk(self, status_code, headers, chunk, finishing): ...
|
||||
def transform_chunk(self, chunk, finishing): ...
|
||||
|
||||
@@ -211,7 +211,7 @@ class UIModule:
|
||||
request = ... # type: Any
|
||||
ui = ... # type: Any
|
||||
locale = ... # type: Any
|
||||
def __init__(self, handler): ...
|
||||
def __init__(self, handler) -> None: ...
|
||||
@property
|
||||
def current_user(self): ...
|
||||
def render(self, *args, **kwargs): ...
|
||||
@@ -230,7 +230,7 @@ class _xsrf_form_html(UIModule):
|
||||
def render(self): ...
|
||||
|
||||
class TemplateModule(UIModule):
|
||||
def __init__(self, handler): ...
|
||||
def __init__(self, handler) -> None: ...
|
||||
def render(self, path, **kwargs): ...
|
||||
def embedded_javascript(self): ...
|
||||
def javascript_files(self): ...
|
||||
@@ -242,7 +242,7 @@ class TemplateModule(UIModule):
|
||||
class _UIModuleNamespace:
|
||||
handler = ... # type: Any
|
||||
ui_modules = ... # type: Any
|
||||
def __init__(self, handler, ui_modules): ...
|
||||
def __init__(self, handler, ui_modules) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
@@ -251,7 +251,7 @@ class URLSpec:
|
||||
handler_class = ... # type: Any
|
||||
kwargs = ... # type: Any
|
||||
name = ... # type: Any
|
||||
def __init__(self, pattern, handler, kwargs=None, name=None): ...
|
||||
def __init__(self, pattern, handler, kwargs=None, name=None) -> None: ...
|
||||
def reverse(self, *args): ...
|
||||
|
||||
url = ... # type: Any
|
||||
|
||||
2
third_party/2.7/yaml/__init__.pyi
vendored
2
third_party/2.7/yaml/__init__.pyi
vendored
@@ -37,7 +37,7 @@ def add_representer(data_type, representer, Dumper=...): ...
|
||||
def add_multi_representer(data_type, multi_representer, Dumper=...): ...
|
||||
|
||||
class YAMLObjectMetaclass(type):
|
||||
def __init__(cls, name, bases, kwds): ...
|
||||
def __init__(cls, name, bases, kwds) -> None: ...
|
||||
|
||||
class YAMLObject:
|
||||
__metaclass__ = ... # type: Any
|
||||
|
||||
2
third_party/2.7/yaml/composer.pyi
vendored
2
third_party/2.7/yaml/composer.pyi
vendored
@@ -10,7 +10,7 @@ class ComposerError(MarkedYAMLError): ...
|
||||
|
||||
class Composer:
|
||||
anchors = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def check_node(self): ...
|
||||
def get_node(self): ...
|
||||
def get_single_node(self): ...
|
||||
|
||||
2
third_party/2.7/yaml/constructor.pyi
vendored
2
third_party/2.7/yaml/constructor.pyi
vendored
@@ -16,7 +16,7 @@ class BaseConstructor:
|
||||
recursive_objects = ... # type: Any
|
||||
state_generators = ... # type: Any
|
||||
deep_construct = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def check_data(self): ...
|
||||
def get_data(self): ...
|
||||
def get_single_data(self): ...
|
||||
|
||||
6
third_party/2.7/yaml/dumper.pyi
vendored
6
third_party/2.7/yaml/dumper.pyi
vendored
@@ -8,10 +8,10 @@ from yaml.representer import BaseRepresenter, Representer, SafeRepresenter
|
||||
from yaml.resolver import BaseResolver, Resolver
|
||||
|
||||
class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver):
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ...
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ...
|
||||
|
||||
class SafeDumper(Emitter, Serializer, SafeRepresenter, Resolver):
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ...
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ...
|
||||
|
||||
class Dumper(Emitter, Serializer, Representer, Resolver):
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ...
|
||||
def __init__(self, stream, default_style=None, default_flow_style=None, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ...
|
||||
|
||||
4
third_party/2.7/yaml/emitter.pyi
vendored
4
third_party/2.7/yaml/emitter.pyi
vendored
@@ -16,7 +16,7 @@ class ScalarAnalysis:
|
||||
allow_single_quoted = ... # type: Any
|
||||
allow_double_quoted = ... # type: Any
|
||||
allow_block = ... # type: Any
|
||||
def __init__(self, scalar, empty, multiline, allow_flow_plain, allow_block_plain, allow_single_quoted, allow_double_quoted, allow_block): ...
|
||||
def __init__(self, scalar, empty, multiline, allow_flow_plain, allow_block_plain, allow_single_quoted, allow_double_quoted, allow_block) -> None: ...
|
||||
|
||||
class Emitter:
|
||||
DEFAULT_TAG_PREFIXES = ... # type: Any
|
||||
@@ -48,7 +48,7 @@ class Emitter:
|
||||
prepared_tag = ... # type: Any
|
||||
analysis = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None): ...
|
||||
def __init__(self, stream, canonical=None, indent=None, width=None, allow_unicode=None, line_break=None) -> None: ...
|
||||
def dispose(self): ...
|
||||
def emit(self, event): ...
|
||||
def need_more_events(self): ...
|
||||
|
||||
4
third_party/2.7/yaml/error.pyi
vendored
4
third_party/2.7/yaml/error.pyi
vendored
@@ -11,7 +11,7 @@ class Mark:
|
||||
column = ... # type: Any
|
||||
buffer = ... # type: Any
|
||||
pointer = ... # type: Any
|
||||
def __init__(self, name, index, line, column, buffer, pointer): ...
|
||||
def __init__(self, name, index, line, column, buffer, pointer) -> None: ...
|
||||
def get_snippet(self, indent=4, max_length=75): ...
|
||||
|
||||
class YAMLError(Exception): ...
|
||||
@@ -22,4 +22,4 @@ class MarkedYAMLError(YAMLError):
|
||||
problem = ... # type: Any
|
||||
problem_mark = ... # type: Any
|
||||
note = ... # type: Any
|
||||
def __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None): ...
|
||||
def __init__(self, context=None, context_mark=None, problem=None, problem_mark=None, note=None) -> None: ...
|
||||
|
||||
14
third_party/2.7/yaml/events.pyi
vendored
14
third_party/2.7/yaml/events.pyi
vendored
@@ -7,13 +7,13 @@ from typing import Any
|
||||
class Event:
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, start_mark=None, end_mark=None): ...
|
||||
def __init__(self, start_mark=None, end_mark=None) -> None: ...
|
||||
|
||||
class NodeEvent(Event):
|
||||
anchor = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, anchor, start_mark=None, end_mark=None): ...
|
||||
def __init__(self, anchor, start_mark=None, end_mark=None) -> None: ...
|
||||
|
||||
class CollectionStartEvent(NodeEvent):
|
||||
anchor = ... # type: Any
|
||||
@@ -22,7 +22,7 @@ class CollectionStartEvent(NodeEvent):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
flow_style = ... # type: Any
|
||||
def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None): ...
|
||||
def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None, flow_style=None) -> None: ...
|
||||
|
||||
class CollectionEndEvent(Event): ...
|
||||
|
||||
@@ -30,7 +30,7 @@ class StreamStartEvent(Event):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
def __init__(self, start_mark=None, end_mark=None, encoding=None): ...
|
||||
def __init__(self, start_mark=None, end_mark=None, encoding=None) -> None: ...
|
||||
|
||||
class StreamEndEvent(Event): ...
|
||||
|
||||
@@ -40,13 +40,13 @@ class DocumentStartEvent(Event):
|
||||
explicit = ... # type: Any
|
||||
version = ... # type: Any
|
||||
tags = ... # type: Any
|
||||
def __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None): ...
|
||||
def __init__(self, start_mark=None, end_mark=None, explicit=None, version=None, tags=None) -> None: ...
|
||||
|
||||
class DocumentEndEvent(Event):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
explicit = ... # type: Any
|
||||
def __init__(self, start_mark=None, end_mark=None, explicit=None): ...
|
||||
def __init__(self, start_mark=None, end_mark=None, explicit=None) -> None: ...
|
||||
|
||||
class AliasEvent(NodeEvent): ...
|
||||
|
||||
@@ -58,7 +58,7 @@ class ScalarEvent(NodeEvent):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None): ...
|
||||
def __init__(self, anchor, tag, implicit, value, start_mark=None, end_mark=None, style=None) -> None: ...
|
||||
|
||||
class SequenceStartEvent(CollectionStartEvent): ...
|
||||
class SequenceEndEvent(CollectionEndEvent): ...
|
||||
|
||||
6
third_party/2.7/yaml/loader.pyi
vendored
6
third_party/2.7/yaml/loader.pyi
vendored
@@ -10,10 +10,10 @@ from yaml.constructor import BaseConstructor, SafeConstructor, Constructor
|
||||
from yaml.resolver import BaseResolver, Resolver
|
||||
|
||||
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
|
||||
def __init__(self, stream): ...
|
||||
def __init__(self, stream) -> None: ...
|
||||
|
||||
class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
|
||||
def __init__(self, stream): ...
|
||||
def __init__(self, stream) -> None: ...
|
||||
|
||||
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
|
||||
def __init__(self, stream): ...
|
||||
def __init__(self, stream) -> None: ...
|
||||
|
||||
6
third_party/2.7/yaml/nodes.pyi
vendored
6
third_party/2.7/yaml/nodes.pyi
vendored
@@ -9,7 +9,7 @@ class Node:
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark, end_mark): ...
|
||||
def __init__(self, tag, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class ScalarNode(Node):
|
||||
id = ... # type: Any
|
||||
@@ -18,7 +18,7 @@ class ScalarNode(Node):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark=None, end_mark=None, style=None): ...
|
||||
def __init__(self, tag, value, start_mark=None, end_mark=None, style=None) -> None: ...
|
||||
|
||||
class CollectionNode(Node):
|
||||
tag = ... # type: Any
|
||||
@@ -26,7 +26,7 @@ class CollectionNode(Node):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
flow_style = ... # type: Any
|
||||
def __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None): ...
|
||||
def __init__(self, tag, value, start_mark=None, end_mark=None, flow_style=None) -> None: ...
|
||||
|
||||
class SequenceNode(CollectionNode):
|
||||
id = ... # type: Any
|
||||
|
||||
2
third_party/2.7/yaml/parser.pyi
vendored
2
third_party/2.7/yaml/parser.pyi
vendored
@@ -15,7 +15,7 @@ class Parser:
|
||||
states = ... # type: Any
|
||||
marks = ... # type: Any
|
||||
state = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def dispose(self): ...
|
||||
def check_event(self, *choices): ...
|
||||
def peek_event(self): ...
|
||||
|
||||
4
third_party/2.7/yaml/reader.pyi
vendored
4
third_party/2.7/yaml/reader.pyi
vendored
@@ -11,7 +11,7 @@ class ReaderError(YAMLError):
|
||||
position = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
reason = ... # type: Any
|
||||
def __init__(self, name, position, character, encoding, reason): ...
|
||||
def __init__(self, name, position, character, encoding, reason) -> None: ...
|
||||
|
||||
class Reader:
|
||||
name = ... # type: Any
|
||||
@@ -26,7 +26,7 @@ class Reader:
|
||||
index = ... # type: Any
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
def __init__(self, stream): ...
|
||||
def __init__(self, stream) -> None: ...
|
||||
def peek(self, index=0): ...
|
||||
def prefix(self, length=1): ...
|
||||
def forward(self, length=1): ...
|
||||
|
||||
2
third_party/2.7/yaml/representer.pyi
vendored
2
third_party/2.7/yaml/representer.pyi
vendored
@@ -15,7 +15,7 @@ class BaseRepresenter:
|
||||
represented_objects = ... # type: Any
|
||||
object_keeper = ... # type: Any
|
||||
alias_key = ... # type: Any
|
||||
def __init__(self, default_style=None, default_flow_style=None): ...
|
||||
def __init__(self, default_style=None, default_flow_style=None) -> None: ...
|
||||
def represent(self, data): ...
|
||||
def get_classobj_bases(self, cls): ...
|
||||
def represent_data(self, data): ...
|
||||
|
||||
2
third_party/2.7/yaml/resolver.pyi
vendored
2
third_party/2.7/yaml/resolver.pyi
vendored
@@ -15,7 +15,7 @@ class BaseResolver:
|
||||
yaml_path_resolvers = ... # type: Any
|
||||
resolver_exact_paths = ... # type: Any
|
||||
resolver_prefix_paths = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def add_implicit_resolver(cls, tag, regexp, first): ...
|
||||
def add_path_resolver(cls, tag, path, kind=None): ...
|
||||
def descend_resolver(self, current_node, current_index): ...
|
||||
|
||||
4
third_party/2.7/yaml/scanner.pyi
vendored
4
third_party/2.7/yaml/scanner.pyi
vendored
@@ -14,7 +14,7 @@ class SimpleKey:
|
||||
line = ... # type: Any
|
||||
column = ... # type: Any
|
||||
mark = ... # type: Any
|
||||
def __init__(self, token_number, required, index, line, column, mark): ...
|
||||
def __init__(self, token_number, required, index, line, column, mark) -> None: ...
|
||||
|
||||
class Scanner:
|
||||
done = ... # type: Any
|
||||
@@ -25,7 +25,7 @@ class Scanner:
|
||||
indents = ... # type: Any
|
||||
allow_simple_key = ... # type: Any
|
||||
possible_simple_keys = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def check_token(self, *choices): ...
|
||||
def peek_token(self): ...
|
||||
def get_token(self): ...
|
||||
|
||||
2
third_party/2.7/yaml/serializer.pyi
vendored
2
third_party/2.7/yaml/serializer.pyi
vendored
@@ -18,7 +18,7 @@ class Serializer:
|
||||
anchors = ... # type: Any
|
||||
last_anchor_id = ... # type: Any
|
||||
closed = ... # type: Any
|
||||
def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None): ...
|
||||
def __init__(self, encoding=None, explicit_start=None, explicit_end=None, version=None, tags=None) -> None: ...
|
||||
def open(self): ...
|
||||
def close(self): ...
|
||||
def serialize(self, node): ...
|
||||
|
||||
14
third_party/2.7/yaml/tokens.pyi
vendored
14
third_party/2.7/yaml/tokens.pyi
vendored
@@ -7,7 +7,7 @@ from typing import Any
|
||||
class Token:
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, start_mark, end_mark): ...
|
||||
def __init__(self, start_mark, end_mark) -> None: ...
|
||||
|
||||
class DirectiveToken(Token):
|
||||
id = ... # type: Any
|
||||
@@ -15,7 +15,7 @@ class DirectiveToken(Token):
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, name, value, start_mark, end_mark): ...
|
||||
def __init__(self, name, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class DocumentStartToken(Token):
|
||||
id = ... # type: Any
|
||||
@@ -28,7 +28,7 @@ class StreamStartToken(Token):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
encoding = ... # type: Any
|
||||
def __init__(self, start_mark=None, end_mark=None, encoding=None): ...
|
||||
def __init__(self, start_mark=None, end_mark=None, encoding=None) -> None: ...
|
||||
|
||||
class StreamEndToken(Token):
|
||||
id = ... # type: Any
|
||||
@@ -71,21 +71,21 @@ class AliasToken(Token):
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark): ...
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class AnchorToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark): ...
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class TagToken(Token):
|
||||
id = ... # type: Any
|
||||
value = ... # type: Any
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
def __init__(self, value, start_mark, end_mark): ...
|
||||
def __init__(self, value, start_mark, end_mark) -> None: ...
|
||||
|
||||
class ScalarToken(Token):
|
||||
id = ... # type: Any
|
||||
@@ -94,4 +94,4 @@ class ScalarToken(Token):
|
||||
start_mark = ... # type: Any
|
||||
end_mark = ... # type: Any
|
||||
style = ... # type: Any
|
||||
def __init__(self, value, plain, start_mark, end_mark, style=None): ...
|
||||
def __init__(self, value, plain, start_mark, end_mark, style=None) -> None: ...
|
||||
|
||||
2
third_party/3/requests/adapters.pyi
vendored
2
third_party/3/requests/adapters.pyi
vendored
@@ -42,7 +42,7 @@ DEFAULT_POOLSIZE = ... # type: Any
|
||||
DEFAULT_RETRIES = ... # type: Any
|
||||
|
||||
class BaseAdapter:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
# TODO: "request" parameter not actually supported, added to please mypy.
|
||||
def send(self, request=None): ...
|
||||
def close(self): ...
|
||||
|
||||
4
third_party/3/requests/auth.pyi
vendored
4
third_party/3/requests/auth.pyi
vendored
@@ -20,7 +20,7 @@ class AuthBase:
|
||||
class HTTPBasicAuth(AuthBase):
|
||||
username = ... # type: Any
|
||||
password = ... # type: Any
|
||||
def __init__(self, username, password): ...
|
||||
def __init__(self, username, password) -> None: ...
|
||||
def __call__(self, r): ...
|
||||
|
||||
class HTTPProxyAuth(HTTPBasicAuth):
|
||||
@@ -34,7 +34,7 @@ class HTTPDigestAuth(AuthBase):
|
||||
chal = ... # type: Any
|
||||
pos = ... # type: Any
|
||||
num_401_calls = ... # type: Any
|
||||
def __init__(self, username, password): ...
|
||||
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): ...
|
||||
|
||||
4
third_party/3/requests/cookies.pyi
vendored
4
third_party/3/requests/cookies.pyi
vendored
@@ -10,7 +10,7 @@ from . import compat
|
||||
|
||||
class MockRequest:
|
||||
type = ... # type: Any
|
||||
def __init__(self, request): ...
|
||||
def __init__(self, request) -> None: ...
|
||||
def get_type(self): ...
|
||||
def get_host(self): ...
|
||||
def get_origin_req_host(self): ...
|
||||
@@ -29,7 +29,7 @@ class MockRequest:
|
||||
def host(self): ...
|
||||
|
||||
class MockResponse:
|
||||
def __init__(self, headers): ...
|
||||
def __init__(self, headers) -> None: ...
|
||||
def info(self): ...
|
||||
def getheaders(self, name): ...
|
||||
|
||||
|
||||
2
third_party/3/requests/exceptions.pyi
vendored
2
third_party/3/requests/exceptions.pyi
vendored
@@ -6,7 +6,7 @@ from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
|
||||
class RequestException(IOError):
|
||||
response = ... # type: Any
|
||||
request = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class HTTPError(RequestException): ...
|
||||
class ConnectionError(RequestException): ...
|
||||
|
||||
2
third_party/3/requests/models.pyi
vendored
2
third_party/3/requests/models.pyi
vendored
@@ -83,7 +83,7 @@ class PreparedRequest(RequestEncodingMixin, RequestHooksMixin):
|
||||
headers = ... # type: Any
|
||||
body = ... # type: Any
|
||||
hooks = ... # type: Any
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def prepare(self, method=None, url=None, headers=None, files=None, data=None, params=None,
|
||||
auth=None, cookies=None, hooks=None, json=None): ...
|
||||
def copy(self): ...
|
||||
|
||||
2
third_party/3/requests/packages/__init__.pyi
vendored
2
third_party/3/requests/packages/__init__.pyi
vendored
@@ -3,6 +3,6 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
class VendorAlias:
|
||||
def __init__(self, package_names): ...
|
||||
def __init__(self, package_names) -> None: ...
|
||||
def find_module(self, fullname, path=None): ...
|
||||
def load_module(self, name): ...
|
||||
|
||||
@@ -13,7 +13,7 @@ class RecentlyUsedContainer(MutableMapping):
|
||||
ContainerCls = ... # type: Any
|
||||
dispose_func = ... # type: Any
|
||||
lock = ... # type: Any
|
||||
def __init__(self, maxsize=10, dispose_func=None): ...
|
||||
def __init__(self, maxsize=10, dispose_func=None) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __delitem__(self, key): ...
|
||||
@@ -23,7 +23,7 @@ class RecentlyUsedContainer(MutableMapping):
|
||||
def keys(self): ...
|
||||
|
||||
class HTTPHeaderDict(dict):
|
||||
def __init__(self, headers=None, **kwargs): ...
|
||||
def __init__(self, headers=None, **kwargs) -> None: ...
|
||||
def __setitem__(self, key, val): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
|
||||
@@ -36,14 +36,14 @@ class HTTPConnection(_HTTPConnection):
|
||||
is_verified = ... # type: Any
|
||||
source_address = ... # type: Any
|
||||
socket_options = ... # type: Any
|
||||
def __init__(self, *args, **kw): ...
|
||||
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=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw): ...
|
||||
def __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=..., **kw) -> None: ...
|
||||
sock = ... # type: Any
|
||||
def connect(self): ...
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class ConnectionPool:
|
||||
QueueCls = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
def __init__(self, host, port=None): ...
|
||||
def __init__(self, host, port=None) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
def close(self): ...
|
||||
@@ -69,7 +69,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
|
||||
num_connections = ... # type: Any
|
||||
num_requests = ... # type: Any
|
||||
conn_kw = ... # type: Any
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw): ...
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, **conn_kw) -> None: ...
|
||||
def close(self): ...
|
||||
def is_same_host(self, url): ...
|
||||
def urlopen(self, method, url, body=None, headers=None, retries=None, redirect=True, assert_same_host=True, timeout=..., pool_timeout=None, release_conn=None, **response_kw): ...
|
||||
@@ -84,6 +84,6 @@ class HTTPSConnectionPool(HTTPConnectionPool):
|
||||
ssl_version = ... # type: Any
|
||||
assert_hostname = ... # type: Any
|
||||
assert_fingerprint = ... # type: Any
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw): ...
|
||||
def __init__(self, host, port=None, strict=False, timeout=..., maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, key_file=None, cert_file=None, cert_reqs=None, ca_certs=None, ssl_version=None, assert_hostname=None, assert_fingerprint=None, **conn_kw) -> None: ...
|
||||
|
||||
def connection_from_url(url, **kw): ...
|
||||
|
||||
@@ -9,12 +9,12 @@ class HTTPWarning(Warning): ...
|
||||
|
||||
class PoolError(HTTPError):
|
||||
pool = ... # type: Any
|
||||
def __init__(self, pool, message): ...
|
||||
def __init__(self, pool, message) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class RequestError(PoolError):
|
||||
url = ... # type: Any
|
||||
def __init__(self, pool, url, message): ...
|
||||
def __init__(self, pool, url, message) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class SSLError(HTTPError): ...
|
||||
@@ -26,11 +26,11 @@ ConnectionError = ... # type: Any
|
||||
|
||||
class MaxRetryError(RequestError):
|
||||
reason = ... # type: Any
|
||||
def __init__(self, pool, url, reason=None): ...
|
||||
def __init__(self, pool, url, reason=None) -> None: ...
|
||||
|
||||
class HostChangedError(RequestError):
|
||||
retries = ... # type: Any
|
||||
def __init__(self, pool, url, retries=3): ...
|
||||
def __init__(self, pool, url, retries=3) -> None: ...
|
||||
|
||||
class TimeoutStateError(HTTPError): ...
|
||||
class TimeoutError(HTTPError): ...
|
||||
@@ -42,7 +42,7 @@ class LocationValueError(ValueError, HTTPError): ...
|
||||
|
||||
class LocationParseError(LocationValueError):
|
||||
location = ... # type: Any
|
||||
def __init__(self, location): ...
|
||||
def __init__(self, location) -> None: ...
|
||||
|
||||
class ResponseError(HTTPError):
|
||||
GENERIC_ERROR = ... # type: Any
|
||||
|
||||
@@ -9,7 +9,7 @@ def format_header_param(name, value): ...
|
||||
class RequestField:
|
||||
data = ... # type: Any
|
||||
headers = ... # type: Any
|
||||
def __init__(self, name, data, filename=None, headers=None): ...
|
||||
def __init__(self, name, data, filename=None, headers=None) -> None: ...
|
||||
@classmethod
|
||||
def from_tuples(cls, fieldname, value): ...
|
||||
def render_headers(self): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class PoolManager(RequestMethods):
|
||||
proxy = ... # type: Any
|
||||
connection_pool_kw = ... # type: Any
|
||||
pools = ... # type: Any
|
||||
def __init__(self, num_pools=10, headers=None, **connection_pool_kw): ...
|
||||
def __init__(self, num_pools=10, headers=None, **connection_pool_kw) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type, exc_val, exc_tb): ...
|
||||
def clear(self): ...
|
||||
@@ -22,7 +22,7 @@ class PoolManager(RequestMethods):
|
||||
class ProxyManager(PoolManager):
|
||||
proxy = ... # type: Any
|
||||
proxy_headers = ... # type: Any
|
||||
def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw): ...
|
||||
def __init__(self, proxy_url, num_pools=10, headers=None, proxy_headers=None, **connection_pool_kw) -> None: ...
|
||||
def connection_from_host(self, host, port=None, scheme=''): ...
|
||||
# TODO: This was the original signature -- copied another one from base class to fix complaint.
|
||||
# def urlopen(self, method, url, redirect=True, **kw): ...
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import Any
|
||||
|
||||
class RequestMethods:
|
||||
headers = ... # type: Any
|
||||
def __init__(self, headers=None): ...
|
||||
def __init__(self, headers=None) -> None: ...
|
||||
def urlopen(self, method, url, body=None, headers=None, encode_multipart=True, multipart_boundary=None, **kw): ...
|
||||
def request(self, method, url, fields=None, headers=None, **urlopen_kw): ...
|
||||
def request_encode_url(self, method, url, fields=None, **urlopen_kw): ...
|
||||
|
||||
@@ -19,12 +19,12 @@ PY3 = True # six.PY3
|
||||
is_fp_closed = response.is_fp_closed
|
||||
|
||||
class DeflateDecoder:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def decompress(self, data): ...
|
||||
|
||||
class GzipDecoder:
|
||||
def __init__(self): ...
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name): ...
|
||||
def decompress(self, data): ...
|
||||
|
||||
@@ -37,7 +37,7 @@ class HTTPResponse(io.IOBase):
|
||||
reason = ... # type: Any
|
||||
strict = ... # type: Any
|
||||
decode_content = ... # type: Any
|
||||
def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None): ...
|
||||
def __init__(self, body='', headers=None, status=0, version=0, reason=None, strict=0, preload_content=True, decode_content=True, original_response=None, pool=None, connection=None) -> None: ...
|
||||
def get_redirect_location(self): ...
|
||||
def release_conn(self): ...
|
||||
@property
|
||||
|
||||
@@ -25,7 +25,7 @@ class Retry:
|
||||
method_whitelist = ... # type: Any
|
||||
backoff_factor = ... # type: Any
|
||||
raise_on_redirect = ... # type: Any
|
||||
def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0): ...
|
||||
def __init__(self, total=10, connect=None, read=None, redirect=None, method_whitelist=..., status_forcelist=None, backoff_factor=0, raise_on_redirect=True, _observed_errors=0) -> None: ...
|
||||
def new(self, **kw): ...
|
||||
@classmethod
|
||||
def from_int(cls, retries, redirect=True, default=None): ...
|
||||
|
||||
@@ -12,7 +12,7 @@ def current_time(): ...
|
||||
class Timeout:
|
||||
DEFAULT_TIMEOUT = ... # type: Any
|
||||
total = ... # type: Any
|
||||
def __init__(self, total=None, connect=..., read=...): ...
|
||||
def __init__(self, total=None, connect=..., read=...) -> None: ...
|
||||
@classmethod
|
||||
def from_float(cls, timeout): ...
|
||||
def clone(self): ...
|
||||
|
||||
4
third_party/3/requests/structures.pyi
vendored
4
third_party/3/requests/structures.pyi
vendored
@@ -4,7 +4,7 @@ from typing import Any
|
||||
import collections
|
||||
|
||||
class CaseInsensitiveDict(collections.MutableMapping):
|
||||
def __init__(self, data=None, **kwargs): ...
|
||||
def __init__(self, data=None, **kwargs) -> None: ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
@@ -16,6 +16,6 @@ class CaseInsensitiveDict(collections.MutableMapping):
|
||||
|
||||
class LookupDict(dict):
|
||||
name = ... # type: Any
|
||||
def __init__(self, name=None): ...
|
||||
def __init__(self, name=None) -> None: ...
|
||||
def __getitem__(self, key): ...
|
||||
def get(self, key, default=None): ...
|
||||
|
||||
Reference in New Issue
Block a user