mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 10:03:32 +08:00
Remove sqlalchemy. (#1105)
See discussion in https://github.com/python/typeshed/pull/1094. If we do this we should make it easier in mypy to install 3rd party stubs that are used by default.
This commit is contained in:
committed by
Jelle Zijlstra
parent
c2cdb1b025
commit
03bfcee0b8
124
third_party/2and3/sqlalchemy/__init__.pyi
vendored
124
third_party/2and3/sqlalchemy/__init__.pyi
vendored
@@ -1,124 +0,0 @@
|
||||
# Stubs for sqlalchemy (Python 2)
|
||||
|
||||
from .sql import (
|
||||
alias,
|
||||
and_,
|
||||
asc,
|
||||
between,
|
||||
bindparam,
|
||||
case,
|
||||
cast,
|
||||
collate,
|
||||
column,
|
||||
delete,
|
||||
desc,
|
||||
distinct,
|
||||
except_,
|
||||
except_all,
|
||||
exists,
|
||||
extract,
|
||||
false,
|
||||
func,
|
||||
funcfilter,
|
||||
insert,
|
||||
intersect,
|
||||
intersect_all,
|
||||
join,
|
||||
literal,
|
||||
literal_column,
|
||||
modifier,
|
||||
not_,
|
||||
null,
|
||||
or_,
|
||||
outerjoin,
|
||||
outparam,
|
||||
over,
|
||||
select,
|
||||
subquery,
|
||||
table,
|
||||
text,
|
||||
true,
|
||||
tuple_,
|
||||
type_coerce,
|
||||
union,
|
||||
union_all,
|
||||
update,
|
||||
)
|
||||
|
||||
from .types import (
|
||||
BIGINT,
|
||||
BINARY,
|
||||
BLOB,
|
||||
BOOLEAN,
|
||||
BigInteger,
|
||||
Binary,
|
||||
Boolean,
|
||||
CHAR,
|
||||
CLOB,
|
||||
DATE,
|
||||
DATETIME,
|
||||
DECIMAL,
|
||||
Date,
|
||||
DateTime,
|
||||
Enum,
|
||||
FLOAT,
|
||||
Float,
|
||||
INT,
|
||||
INTEGER,
|
||||
Integer,
|
||||
Interval,
|
||||
LargeBinary,
|
||||
NCHAR,
|
||||
NVARCHAR,
|
||||
NUMERIC,
|
||||
Numeric,
|
||||
PickleType,
|
||||
REAL,
|
||||
SMALLINT,
|
||||
SmallInteger,
|
||||
String,
|
||||
TEXT,
|
||||
TIME,
|
||||
TIMESTAMP,
|
||||
Text,
|
||||
Time,
|
||||
TypeDecorator,
|
||||
Unicode,
|
||||
UnicodeText,
|
||||
VARBINARY,
|
||||
VARCHAR,
|
||||
)
|
||||
|
||||
from .schema import (
|
||||
CheckConstraint,
|
||||
Column,
|
||||
ColumnDefault,
|
||||
Constraint,
|
||||
DefaultClause,
|
||||
FetchedValue,
|
||||
ForeignKey,
|
||||
ForeignKeyConstraint,
|
||||
Index,
|
||||
MetaData,
|
||||
PassiveDefault,
|
||||
PrimaryKeyConstraint,
|
||||
Sequence,
|
||||
Table,
|
||||
ThreadLocalMetaData,
|
||||
UniqueConstraint,
|
||||
DDL,
|
||||
)
|
||||
|
||||
from . import sql as sql
|
||||
from . import schema as schema
|
||||
from . import types as types
|
||||
from . import exc as exc
|
||||
from . import dialects as dialects
|
||||
from . import pool as pool
|
||||
# This should re-export orm but orm is totally broken right now
|
||||
# from . import orm as orm
|
||||
|
||||
from .inspection import inspect
|
||||
from .engine import create_engine, engine_from_config
|
||||
|
||||
__version__ = ... # type: int
|
||||
@@ -1,12 +0,0 @@
|
||||
# Stubs for sqlalchemy.databases (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# firebird
|
||||
# mssql
|
||||
# mysql
|
||||
# oracle
|
||||
# postgresql
|
||||
# sqlite
|
||||
# sybase
|
||||
@@ -1 +0,0 @@
|
||||
from sqlalchemy.dialects.mysql.base import * # noqa: F403
|
||||
@@ -1,12 +0,0 @@
|
||||
# Stubs for sqlalchemy.dialects (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# firebird
|
||||
# mssql
|
||||
# mysql
|
||||
# oracle
|
||||
# postgresql
|
||||
# sqlite
|
||||
# sybase
|
||||
@@ -1,40 +0,0 @@
|
||||
# Stubs for sqlalchemy.dialects.mysql (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from . import base
|
||||
|
||||
BIGINT = base.BIGINT
|
||||
BINARY = base.BINARY
|
||||
BIT = base.BIT
|
||||
BLOB = base.BLOB
|
||||
BOOLEAN = base.BOOLEAN
|
||||
CHAR = base.CHAR
|
||||
DATE = base.DATE
|
||||
DATETIME = base.DATETIME
|
||||
DECIMAL = base.DECIMAL
|
||||
DOUBLE = base.DOUBLE
|
||||
ENUM = base.ENUM
|
||||
FLOAT = base.FLOAT
|
||||
INTEGER = base.INTEGER
|
||||
LONGBLOB = base.LONGBLOB
|
||||
LONGTEXT = base.LONGTEXT
|
||||
MEDIUMBLOB = base.MEDIUMBLOB
|
||||
MEDIUMINT = base.MEDIUMINT
|
||||
MEDIUMTEXT = base.MEDIUMTEXT
|
||||
NCHAR = base.NCHAR
|
||||
NVARCHAR = base.NVARCHAR
|
||||
NUMERIC = base.NUMERIC
|
||||
SET = base.SET
|
||||
SMALLINT = base.SMALLINT
|
||||
REAL = base.REAL
|
||||
TEXT = base.TEXT
|
||||
TIME = base.TIME
|
||||
TIMESTAMP = base.TIMESTAMP
|
||||
TINYBLOB = base.TINYBLOB
|
||||
TINYINT = base.TINYINT
|
||||
TINYTEXT = base.TINYTEXT
|
||||
VARBINARY = base.VARBINARY
|
||||
VARCHAR = base.VARCHAR
|
||||
YEAR = base.YEAR
|
||||
# dialect = base.dialect
|
||||
413
third_party/2and3/sqlalchemy/dialects/mysql/base.pyi
vendored
413
third_party/2and3/sqlalchemy/dialects/mysql/base.pyi
vendored
@@ -1,413 +0,0 @@
|
||||
# Stubs for sqlalchemy.dialects.mysql.base (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from ... import sql
|
||||
from ... import engine
|
||||
from ... import util
|
||||
from ... import types
|
||||
|
||||
sqltypes = sql.sqltypes
|
||||
# compiler = sql.compiler
|
||||
# reflection = engine.reflection
|
||||
# default = engine.default
|
||||
# topological = util.topological
|
||||
DATE = types.DATE
|
||||
BOOLEAN = types.BOOLEAN
|
||||
BLOB = types.BLOB
|
||||
BINARY = types.BINARY
|
||||
VARBINARY = types.VARBINARY
|
||||
|
||||
RESERVED_WORDS = ... # type: Any
|
||||
AUTOCOMMIT_RE = ... # type: Any
|
||||
SET_RE = ... # type: Any
|
||||
|
||||
class _NumericType:
|
||||
unsigned = ... # type: Any
|
||||
zerofill = ... # type: Any
|
||||
def __init__(self, unsigned=..., zerofill=..., **kw) -> None: ...
|
||||
|
||||
class _FloatType(_NumericType,
|
||||
# sqltypes.Float
|
||||
):
|
||||
scale = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
|
||||
class _IntegerType(_NumericType,
|
||||
# sqltypes.Integer
|
||||
):
|
||||
display_width = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class _StringType(object,
|
||||
# sqltypes.String
|
||||
):
|
||||
charset = ... # type: Any
|
||||
ascii = ... # type: Any
|
||||
unicode = ... # type: Any
|
||||
binary = ... # type: Any
|
||||
national = ... # type: Any
|
||||
def __init__(self, charset=..., collation=..., ascii=..., binary=..., unicode=..., national=..., **kw) -> None: ...
|
||||
|
||||
class _MatchType(object,
|
||||
# sqltypes.Float,
|
||||
# sqltypes.MatchType
|
||||
):
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
class NUMERIC(_NumericType,
|
||||
# sqltypes.NUMERIC
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
|
||||
class DECIMAL(_NumericType,
|
||||
# sqltypes.DECIMAL
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
|
||||
class DOUBLE(_FloatType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
|
||||
class REAL(_FloatType,
|
||||
# sqltypes.REAL
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
|
||||
class FLOAT(_FloatType,
|
||||
# sqltypes.FLOAT
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, precision=..., scale=..., asdecimal=..., **kw) -> None: ...
|
||||
def bind_processor(self, dialect): ...
|
||||
|
||||
class INTEGER(_IntegerType,
|
||||
# sqltypes.INTEGER
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class BIGINT(_IntegerType,
|
||||
# sqltypes.BIGINT
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class MEDIUMINT(_IntegerType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class TINYINT(_IntegerType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class SMALLINT(_IntegerType,
|
||||
# sqltypes.SMALLINT
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, display_width=..., **kw) -> None: ...
|
||||
|
||||
class BIT(object,
|
||||
# sqltypes.TypeEngine
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
length = ... # type: Any
|
||||
def __init__(self, length=...) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIME(object,
|
||||
# sqltypes.TIME
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=..., fsp=...) -> None: ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class TIMESTAMP(object,
|
||||
# sqltypes.TIMESTAMP
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=..., fsp=...) -> None: ...
|
||||
|
||||
class DATETIME(object,
|
||||
# sqltypes.DATETIME
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
fsp = ... # type: Any
|
||||
def __init__(self, timezone=..., fsp=...) -> None: ...
|
||||
|
||||
class YEAR(object,
|
||||
# sqltypes.TypeEngine
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
display_width = ... # type: Any
|
||||
def __init__(self, display_width=...) -> None: ...
|
||||
|
||||
class TEXT(_StringType,
|
||||
# sqltypes.TEXT
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=..., **kw) -> None: ...
|
||||
|
||||
class TINYTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class MEDIUMTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class LONGTEXT(_StringType):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
|
||||
class VARCHAR(_StringType,
|
||||
# sqltypes.VARCHAR
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=..., **kwargs) -> None: ...
|
||||
|
||||
class CHAR(_StringType,
|
||||
# sqltypes.CHAR
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=..., **kwargs) -> None: ...
|
||||
|
||||
class NVARCHAR(_StringType,
|
||||
# sqltypes.NVARCHAR
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=..., **kwargs) -> None: ...
|
||||
|
||||
class NCHAR(_StringType,
|
||||
# sqltypes.NCHAR
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
def __init__(self, length=..., **kwargs) -> None: ...
|
||||
|
||||
class TINYBLOB(object,
|
||||
# sqltypes._Binary
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
|
||||
class MEDIUMBLOB(object,
|
||||
# sqltypes._Binary
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
|
||||
class LONGBLOB(object,
|
||||
# sqltypes._Binary
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
|
||||
class _EnumeratedValues(_StringType): ...
|
||||
|
||||
class ENUM( # sqltypes.Enum,
|
||||
_EnumeratedValues
|
||||
):
|
||||
__visit_name__ = ... # type: Any
|
||||
strict = ... # type: Any
|
||||
def __init__(self, *enums, **kw) -> None: ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def adapt(self, cls, **kw): ...
|
||||
|
||||
class SET(_EnumeratedValues):
|
||||
__visit_name__ = ... # type: Any
|
||||
retrieve_as_bitwise = ... # type: Any
|
||||
values = ... # type: Any
|
||||
def __init__(self, *values, **kw) -> None: ...
|
||||
def column_expression(self, colexpr): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def adapt(self, impltype, **kw): ...
|
||||
|
||||
MSTime = ... # type: Any
|
||||
MSSet = ... # type: Any
|
||||
MSEnum = ... # type: Any
|
||||
MSLongBlob = ... # type: Any
|
||||
MSMediumBlob = ... # type: Any
|
||||
MSTinyBlob = ... # type: Any
|
||||
MSBlob = ... # type: Any
|
||||
MSBinary = ... # type: Any
|
||||
MSVarBinary = ... # type: Any
|
||||
MSNChar = ... # type: Any
|
||||
MSNVarChar = ... # type: Any
|
||||
MSChar = ... # type: Any
|
||||
MSString = ... # type: Any
|
||||
MSLongText = ... # type: Any
|
||||
MSMediumText = ... # type: Any
|
||||
MSTinyText = ... # type: Any
|
||||
MSText = ... # type: Any
|
||||
MSYear = ... # type: Any
|
||||
MSTimeStamp = ... # type: Any
|
||||
MSBit = ... # type: Any
|
||||
MSSmallInteger = ... # type: Any
|
||||
MSTinyInteger = ... # type: Any
|
||||
MSMediumInteger = ... # type: Any
|
||||
MSBigInteger = ... # type: Any
|
||||
MSNumeric = ... # type: Any
|
||||
MSDecimal = ... # type: Any
|
||||
MSDouble = ... # type: Any
|
||||
MSReal = ... # type: Any
|
||||
MSFloat = ... # type: Any
|
||||
MSInteger = ... # type: Any
|
||||
colspecs = ... # type: Any
|
||||
ischema_names = ... # type: Any
|
||||
|
||||
class MySQLExecutionContext(object,
|
||||
# default.DefaultExecutionContext
|
||||
):
|
||||
def should_autocommit_text(self, statement): ...
|
||||
|
||||
class MySQLCompiler(object,
|
||||
# compiler.SQLCompiler
|
||||
):
|
||||
render_table_with_column_in_update_from = ... # type: Any
|
||||
extract_map = ... # type: Any
|
||||
def visit_random_func(self, fn, **kw): ...
|
||||
def visit_utc_timestamp_func(self, fn, **kw): ...
|
||||
def visit_sysdate_func(self, fn, **kw): ...
|
||||
def visit_concat_op_binary(self, binary, operator, **kw): ...
|
||||
def visit_match_op_binary(self, binary, operator, **kw): ...
|
||||
def get_from_hint_text(self, table, text): ...
|
||||
def visit_typeclause(self, typeclause, type_=...): ...
|
||||
def visit_cast(self, cast, **kwargs): ...
|
||||
def render_literal_value(self, value, type_): ...
|
||||
def visit_true(self, element, **kw): ...
|
||||
def visit_false(self, element, **kw): ...
|
||||
def get_select_precolumns(self, select, **kw): ...
|
||||
def visit_join(self, join, asfrom=..., **kwargs): ...
|
||||
def for_update_clause(self, select, **kw): ...
|
||||
def limit_clause(self, select, **kw): ...
|
||||
def update_limit_clause(self, update_stmt): ...
|
||||
def update_tables_clause(self, update_stmt, from_table, extra_froms, **kw): ...
|
||||
def update_from_clause(self, update_stmt, from_table, extra_froms, from_hints, **kw): ...
|
||||
|
||||
class MySQLDDLCompiler(object,
|
||||
# compiler.DDLCompiler
|
||||
):
|
||||
def create_table_constraints(self, table, **kw): ...
|
||||
def get_column_specification(self, column, **kw): ...
|
||||
def post_create_table(self, table): ...
|
||||
def visit_create_index(self, create): ...
|
||||
def visit_primary_key_constraint(self, constraint): ...
|
||||
def visit_drop_index(self, drop): ...
|
||||
def visit_drop_constraint(self, drop): ...
|
||||
def define_constraint_match(self, constraint): ...
|
||||
|
||||
class MySQLTypeCompiler(object,
|
||||
# compiler.GenericTypeCompiler
|
||||
):
|
||||
def visit_NUMERIC(self, type_, **kw): ...
|
||||
def visit_DECIMAL(self, type_, **kw): ...
|
||||
def visit_DOUBLE(self, type_, **kw): ...
|
||||
def visit_REAL(self, type_, **kw): ...
|
||||
def visit_FLOAT(self, type_, **kw): ...
|
||||
def visit_INTEGER(self, type_, **kw): ...
|
||||
def visit_BIGINT(self, type_, **kw): ...
|
||||
def visit_MEDIUMINT(self, type_, **kw): ...
|
||||
def visit_TINYINT(self, type_, **kw): ...
|
||||
def visit_SMALLINT(self, type_, **kw): ...
|
||||
def visit_BIT(self, type_, **kw): ...
|
||||
def visit_DATETIME(self, type_, **kw): ...
|
||||
def visit_DATE(self, type_, **kw): ...
|
||||
def visit_TIME(self, type_, **kw): ...
|
||||
def visit_TIMESTAMP(self, type_, **kw): ...
|
||||
def visit_YEAR(self, type_, **kw): ...
|
||||
def visit_TEXT(self, type_, **kw): ...
|
||||
def visit_TINYTEXT(self, type_, **kw): ...
|
||||
def visit_MEDIUMTEXT(self, type_, **kw): ...
|
||||
def visit_LONGTEXT(self, type_, **kw): ...
|
||||
def visit_VARCHAR(self, type_, **kw): ...
|
||||
def visit_CHAR(self, type_, **kw): ...
|
||||
def visit_NVARCHAR(self, type_, **kw): ...
|
||||
def visit_NCHAR(self, type_, **kw): ...
|
||||
def visit_VARBINARY(self, type_, **kw): ...
|
||||
def visit_large_binary(self, type_, **kw): ...
|
||||
def visit_enum(self, type_, **kw): ...
|
||||
def visit_BLOB(self, type_, **kw): ...
|
||||
def visit_TINYBLOB(self, type_, **kw): ...
|
||||
def visit_MEDIUMBLOB(self, type_, **kw): ...
|
||||
def visit_LONGBLOB(self, type_, **kw): ...
|
||||
def visit_ENUM(self, type_, **kw): ...
|
||||
def visit_SET(self, type_, **kw): ...
|
||||
def visit_BOOLEAN(self, type, **kw): ...
|
||||
|
||||
class MySQLIdentifierPreparer(object,
|
||||
# compiler.IdentifierPreparer
|
||||
):
|
||||
reserved_words = ... # type: Any
|
||||
def __init__(self, dialect, server_ansiquotes=..., **kw) -> None: ...
|
||||
|
||||
class MySQLDialect(object,
|
||||
# default.DefaultDialect
|
||||
):
|
||||
name = ... # type: Any
|
||||
supports_alter = ... # type: Any
|
||||
supports_native_boolean = ... # type: Any
|
||||
max_identifier_length = ... # type: Any
|
||||
max_index_name_length = ... # type: Any
|
||||
supports_native_enum = ... # type: Any
|
||||
supports_sane_rowcount = ... # type: Any
|
||||
supports_sane_multi_rowcount = ... # type: Any
|
||||
supports_multivalues_insert = ... # type: Any
|
||||
default_paramstyle = ... # type: Any
|
||||
colspecs = ... # type: Any
|
||||
statement_compiler = ... # type: Any
|
||||
ddl_compiler = ... # type: Any
|
||||
type_compiler = ... # type: Any
|
||||
ischema_names = ... # type: Any
|
||||
preparer = ... # type: Any
|
||||
construct_arguments = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
def __init__(self, isolation_level=..., **kwargs) -> None: ...
|
||||
def on_connect(self): ...
|
||||
def set_isolation_level(self, connection, level): ...
|
||||
def get_isolation_level(self, connection): ...
|
||||
def do_commit(self, dbapi_connection): ...
|
||||
def do_rollback(self, dbapi_connection): ...
|
||||
def do_begin_twophase(self, connection, xid): ...
|
||||
def do_prepare_twophase(self, connection, xid): ...
|
||||
def do_rollback_twophase(self, connection, xid, is_prepared=..., recover=...): ...
|
||||
def do_commit_twophase(self, connection, xid, is_prepared=..., recover=...): ...
|
||||
def do_recover_twophase(self, connection): ...
|
||||
def is_disconnect(self, e, connection, cursor): ...
|
||||
def has_table(self, connection, table_name, schema=...): ...
|
||||
identifier_preparer = ... # type: Any
|
||||
def initialize(self, connection): ...
|
||||
def get_schema_names(self, connection, **kw): ...
|
||||
def get_table_names(self, connection, schema=..., **kw): ...
|
||||
def get_view_names(self, connection, schema=..., **kw): ...
|
||||
def get_table_options(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_columns(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_pk_constraint(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_foreign_keys(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_indexes(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_unique_constraints(self, connection, table_name, schema=..., **kw): ...
|
||||
def get_view_definition(self, connection, view_name, schema=..., **kw): ...
|
||||
|
||||
class ReflectedState:
|
||||
columns = ... # type: Any
|
||||
table_options = ... # type: Any
|
||||
table_name = ... # type: Any
|
||||
keys = ... # type: Any
|
||||
constraints = ... # type: Any
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class MySQLTableDefinitionParser:
|
||||
dialect = ... # type: Any
|
||||
preparer = ... # type: Any
|
||||
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) -> None: ...
|
||||
def __getitem__(self, index): ...
|
||||
def __getattr__(self, attr): ...
|
||||
11
third_party/2and3/sqlalchemy/engine/__init__.pyi
vendored
11
third_party/2and3/sqlalchemy/engine/__init__.pyi
vendored
@@ -1,11 +0,0 @@
|
||||
# Stubs for sqlalchemy.engine (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from .base import Connection as Connection
|
||||
from .base import Engine as Engine
|
||||
from .base import Transaction as Transaction
|
||||
from .result import RowProxy as RowProxy
|
||||
|
||||
def create_engine(*args, **kwargs): ...
|
||||
def engine_from_config(configuration, prefix=..., **kwargs): ...
|
||||
10
third_party/2and3/sqlalchemy/engine/base.pyi
vendored
10
third_party/2and3/sqlalchemy/engine/base.pyi
vendored
@@ -1,10 +0,0 @@
|
||||
from .interfaces import Connectable
|
||||
|
||||
class Connection(Connectable):
|
||||
def begin(self): ...
|
||||
|
||||
class Engine(Connectable): ...
|
||||
|
||||
class Transaction:
|
||||
def commit(self): ...
|
||||
def rollback(self): ...
|
||||
@@ -1,11 +0,0 @@
|
||||
from typing import Any, TYPE_CHECKING
|
||||
from .result import ResultProxy
|
||||
from .base import Connection
|
||||
|
||||
class Connectable:
|
||||
def execute(self, object, *multiparams: Any, **params: Any) -> ResultProxy: ...
|
||||
def connect(self, **kwargs: Any) -> Connection: ...
|
||||
def contextual_connect(self) -> Connection: ...
|
||||
# Note: The return type `Any` should be a DB API 2 value type once defined
|
||||
# TODO: See #1037
|
||||
def scalar(self, object, *multiparams: Any, **params: Any) -> Any: ...
|
||||
22
third_party/2and3/sqlalchemy/engine/result.pyi
vendored
22
third_party/2and3/sqlalchemy/engine/result.pyi
vendored
@@ -1,22 +0,0 @@
|
||||
from typing import Any, Iterator, List, Mapping, Optional
|
||||
|
||||
# Note: The value type `Any` should be a DB API 2 value type once defined
|
||||
# TODO: See #1037
|
||||
|
||||
class RowProxy(Mapping[str, Any]): ...
|
||||
|
||||
class ResultProxy(Iterator[RowProxy]):
|
||||
def keys(self) -> List[str]: ...
|
||||
def close(self) -> None: ...
|
||||
def __iter__(self) -> Iterator[RowProxy]: ...
|
||||
def fetchall(self) -> Iterator[RowProxy]: ...
|
||||
def fetchmany(self, size: Optional[int]=None) -> Iterator[RowProxy]: ...
|
||||
def fetchone(self) -> Optional[RowProxy]: ...
|
||||
def first(self) -> Optional[RowProxy]: ...
|
||||
|
||||
# Note: The return type `Any` should be a DB API 2 value type once defined
|
||||
# TODO: See #1037
|
||||
def scalar(self) -> Any: ...
|
||||
|
||||
@property
|
||||
def rowcount(self) -> int: ...
|
||||
@@ -1,39 +0,0 @@
|
||||
# Stubs for sqlalchemy.engine.strategies (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
from . import base
|
||||
|
||||
strategies = ... # type: Any
|
||||
|
||||
class EngineStrategy:
|
||||
def __init__(self) -> None: ...
|
||||
def create(self, *args, **kwargs): ...
|
||||
|
||||
class DefaultEngineStrategy(EngineStrategy):
|
||||
def create(self, name_or_url, **kwargs): ...
|
||||
|
||||
class PlainEngineStrategy(DefaultEngineStrategy):
|
||||
name = ... # type: Any
|
||||
engine_cls = ... # type: Any
|
||||
|
||||
class ThreadLocalEngineStrategy(DefaultEngineStrategy):
|
||||
name = ... # type: Any
|
||||
engine_cls = ... # type: Any
|
||||
|
||||
class MockEngineStrategy(EngineStrategy):
|
||||
name = ... # type: Any
|
||||
def create(self, name_or_url, executor, **kwargs): ...
|
||||
class MockConnection(base.Connectable):
|
||||
def __init__(self, dialect, execute) -> None: ...
|
||||
engine = ... # type: Any
|
||||
dialect = ... # type: Any
|
||||
name = ... # type: Any
|
||||
def contextual_connect(self, **kwargs): ...
|
||||
def execution_options(self, **kw): ...
|
||||
def compiler(self, statement, parameters, **kwargs): ...
|
||||
def create(self, entity, **kwargs): ...
|
||||
def drop(self, entity, **kwargs): ...
|
||||
def execute(self, object, *multiparams, **params): ...
|
||||
27
third_party/2and3/sqlalchemy/engine/url.pyi
vendored
27
third_party/2and3/sqlalchemy/engine/url.pyi
vendored
@@ -1,27 +0,0 @@
|
||||
# Stubs for sqlalchemy.engine.url (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from .. import dialects
|
||||
|
||||
# registry = dialects.registry
|
||||
|
||||
class URL:
|
||||
drivername = ... # type: Any
|
||||
username = ... # type: Any
|
||||
password = ... # type: Any
|
||||
host = ... # type: Any
|
||||
port = ... # type: Any
|
||||
database = ... # type: Any
|
||||
query = ... # type: Any
|
||||
def __init__(self, drivername, username=..., password=..., host=..., port=..., database=..., query=...) -> None: ...
|
||||
def __to_string__(self, hide_password=...): ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def get_backend_name(self): ...
|
||||
def get_driver_name(self): ...
|
||||
def get_dialect(self): ...
|
||||
def translate_connect_args(self, names=..., **kw): ...
|
||||
|
||||
def make_url(name_or_url): ...
|
||||
77
third_party/2and3/sqlalchemy/exc.pyi
vendored
77
third_party/2and3/sqlalchemy/exc.pyi
vendored
@@ -1,77 +0,0 @@
|
||||
# Stubs for sqlalchemy.exc (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class SQLAlchemyError(Exception): ...
|
||||
class ArgumentError(SQLAlchemyError): ...
|
||||
class NoSuchModuleError(ArgumentError): ...
|
||||
class NoForeignKeysError(ArgumentError): ...
|
||||
class AmbiguousForeignKeysError(ArgumentError): ...
|
||||
|
||||
class CircularDependencyError(SQLAlchemyError):
|
||||
cycles = ... # type: Any
|
||||
edges = ... # type: Any
|
||||
def __init__(self, message, cycles, edges, msg=...) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class CompileError(SQLAlchemyError): ...
|
||||
|
||||
class UnsupportedCompilationError(CompileError):
|
||||
def __init__(self, compiler, element_type) -> None: ...
|
||||
|
||||
class IdentifierError(SQLAlchemyError): ...
|
||||
class DisconnectionError(SQLAlchemyError): ...
|
||||
class TimeoutError(SQLAlchemyError): ...
|
||||
class InvalidRequestError(SQLAlchemyError): ...
|
||||
class NoInspectionAvailable(InvalidRequestError): ...
|
||||
class ResourceClosedError(InvalidRequestError): ...
|
||||
class NoSuchColumnError(KeyError, InvalidRequestError): ...
|
||||
class NoReferenceError(InvalidRequestError): ...
|
||||
|
||||
class NoReferencedTableError(NoReferenceError):
|
||||
table_name = ... # type: Any
|
||||
def __init__(self, message, tname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoReferencedColumnError(NoReferenceError):
|
||||
table_name = ... # type: Any
|
||||
column_name = ... # type: Any
|
||||
def __init__(self, message, tname, cname) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class NoSuchTableError(InvalidRequestError): ...
|
||||
class UnboundExecutionError(InvalidRequestError): ...
|
||||
class DontWrapMixin: ...
|
||||
|
||||
UnmappedColumnError = ... # type: Any
|
||||
|
||||
class StatementError(SQLAlchemyError):
|
||||
statement = ... # type: Any
|
||||
params = ... # type: Any
|
||||
orig = ... # type: Any
|
||||
detail = ... # type: Any
|
||||
def __init__(self, message, statement, params, orig) -> None: ...
|
||||
def add_detail(self, msg): ...
|
||||
def __reduce__(self): ...
|
||||
def __unicode__(self): ...
|
||||
|
||||
class DBAPIError(StatementError):
|
||||
@classmethod
|
||||
def instance(cls, statement, params, orig, dbapi_base_err, connection_invalidated=..., dialect=...): ...
|
||||
def __reduce__(self): ...
|
||||
connection_invalidated = ... # type: Any
|
||||
def __init__(self, statement, params, orig, connection_invalidated=...) -> None: ...
|
||||
|
||||
class InterfaceError(DBAPIError): ...
|
||||
class DatabaseError(DBAPIError): ...
|
||||
class DataError(DatabaseError): ...
|
||||
class OperationalError(DatabaseError): ...
|
||||
class IntegrityError(DatabaseError): ...
|
||||
class InternalError(DatabaseError): ...
|
||||
class ProgrammingError(DatabaseError): ...
|
||||
class NotSupportedError(DatabaseError): ...
|
||||
class SADeprecationWarning(DeprecationWarning): ...
|
||||
class SAPendingDeprecationWarning(PendingDeprecationWarning): ...
|
||||
class SAWarning(RuntimeWarning): ...
|
||||
5
third_party/2and3/sqlalchemy/inspection.pyi
vendored
5
third_party/2and3/sqlalchemy/inspection.pyi
vendored
@@ -1,5 +0,0 @@
|
||||
# Stubs for sqlalchemy.inspection (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
def inspect(subject, raiseerr=...): ...
|
||||
14
third_party/2and3/sqlalchemy/log.pyi
vendored
14
third_party/2and3/sqlalchemy/log.pyi
vendored
@@ -1,14 +0,0 @@
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
rootlogger = ... # type: Any
|
||||
|
||||
class Identified(object):
|
||||
def _should_log_debug(self) -> bool: ...
|
||||
def _should_log_info(self) -> bool: ...
|
||||
|
||||
class InstanceLogger(object): ...
|
||||
|
||||
def instance_logger(instance, echoflag) -> None: ...
|
||||
|
||||
class echo_property(object): ...
|
||||
95
third_party/2and3/sqlalchemy/orm/__init__.pyi
vendored
95
third_party/2and3/sqlalchemy/orm/__init__.pyi
vendored
@@ -1,95 +0,0 @@
|
||||
# Stubs for sqlalchemy.orm (Python 2 and 3)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
# from . import mapper
|
||||
# from . import interfaces
|
||||
# from . import deprecated_interfaces
|
||||
from . import util
|
||||
# from . import properties
|
||||
# from . import relationships
|
||||
# from . import descriptor_props
|
||||
from . import session
|
||||
# from . import scoping
|
||||
# from . import query
|
||||
from ..util import langhelpers
|
||||
# from . import strategy_options
|
||||
|
||||
# Mapper = mapper.Mapper
|
||||
# class_mapper = mapper.class_mapper
|
||||
# configure_mappers = mapper.configure_mappers
|
||||
# reconstructor = mapper.reconstructor
|
||||
# validates = mapper.validates
|
||||
# EXT_CONTINUE = interfaces.EXT_CONTINUE
|
||||
# EXT_STOP = interfaces.EXT_STOP
|
||||
# PropComparator = interfaces.PropComparator
|
||||
# MapperExtension = deprecated_interfaces.MapperExtension
|
||||
# SessionExtension = deprecated_interfaces.SessionExtension
|
||||
# AttributeExtension = deprecated_interfaces.AttributeExtension
|
||||
aliased = util.aliased
|
||||
# join = util.join
|
||||
# object_mapper = util.object_mapper
|
||||
# outerjoin = util.outerjoin
|
||||
# polymorphic_union = util.polymorphic_union
|
||||
# was_deleted = util.was_deleted
|
||||
# with_parent = util.with_parent
|
||||
# with_polymorphic = util.with_polymorphic
|
||||
# ColumnProperty = properties.ColumnProperty
|
||||
# RelationshipProperty = relationships.RelationshipProperty
|
||||
# ComparableProperty = descriptor_props.ComparableProperty
|
||||
# CompositeProperty = descriptor_props.CompositeProperty
|
||||
# SynonymProperty = descriptor_props.SynonymProperty
|
||||
# foreign = relationships.foreign
|
||||
# remote = relationships.remote
|
||||
Session = session.Session
|
||||
object_session = Session.object_session
|
||||
sessionmaker = session.sessionmaker
|
||||
# make_transient = session.make_transient
|
||||
# make_transient_to_detached = session.make_transient_to_detached
|
||||
# scoped_session = scoping.scoped_session
|
||||
# AliasOption = query.AliasOption
|
||||
# Query = query.Query
|
||||
# Bundle = query.Bundle
|
||||
public_factory = langhelpers.public_factory
|
||||
|
||||
def create_session(bind=..., **kwargs): ...
|
||||
|
||||
relationship = ... # type: Any
|
||||
|
||||
def relation(*arg, **kw): ...
|
||||
def dynamic_loader(argument, **kw): ...
|
||||
|
||||
column_property = ... # type: Any
|
||||
composite = ... # type: Any
|
||||
|
||||
def backref(name, **kwargs): ...
|
||||
def deferred(*columns, **kw): ...
|
||||
|
||||
synonym = ... # type: Any
|
||||
comparable_property = ... # type: Any
|
||||
|
||||
def compile_mappers(): ...
|
||||
def clear_mappers(): ...
|
||||
|
||||
joinedload = ... # type: Any
|
||||
joinedload_all = ... # type: Any
|
||||
contains_eager = ... # type: Any
|
||||
defer = ... # type: Any
|
||||
undefer = ... # type: Any
|
||||
undefer_group = ... # type: Any
|
||||
load_only = ... # type: Any
|
||||
lazyload = ... # type: Any
|
||||
lazyload_all = ... # type: Any
|
||||
subqueryload = ... # type: Any
|
||||
subqueryload_all = ... # type: Any
|
||||
immediateload = ... # type: Any
|
||||
noload = ... # type: Any
|
||||
defaultload = ... # type: Any
|
||||
|
||||
# Load = strategy_options.Load
|
||||
|
||||
def eagerload(*args, **kwargs): ...
|
||||
def eagerload_all(*args, **kwargs): ...
|
||||
|
||||
contains_alias = ... # type: Any
|
||||
93
third_party/2and3/sqlalchemy/orm/session.pyi
vendored
93
third_party/2and3/sqlalchemy/orm/session.pyi
vendored
@@ -1,93 +0,0 @@
|
||||
# Stubs for sqlalchemy.orm.session (Python 2 and 3)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class _SessionClassMethods:
|
||||
@classmethod
|
||||
def close_all(cls): ...
|
||||
@classmethod
|
||||
def identity_key(cls, orm_util, *args, **kwargs): ...
|
||||
@classmethod
|
||||
def object_session(cls, instance): ...
|
||||
|
||||
class SessionTransaction:
|
||||
session = ... # type: Any
|
||||
nested = ... # type: Any
|
||||
def __init__(self, session, parent=..., nested=...) -> None: ...
|
||||
@property
|
||||
def is_active(self): ...
|
||||
def connection(self, bindkey, execution_options=..., **kwargs): ...
|
||||
def prepare(self): ...
|
||||
def commit(self): ...
|
||||
def rollback(self, _capture_exception=...): ...
|
||||
def close(self, invalidate=...): ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type, value, traceback): ...
|
||||
|
||||
class Session(_SessionClassMethods):
|
||||
public_methods = ... # type: Any
|
||||
identity_map = ... # type: Any
|
||||
bind = ... # type: Any
|
||||
transaction = ... # type: Any
|
||||
hash_key = ... # type: Any
|
||||
autoflush = ... # type: Any
|
||||
autocommit = ... # type: Any
|
||||
expire_on_commit = ... # type: Any
|
||||
twophase = ... # type: Any
|
||||
def __init__(self, bind=..., autoflush=..., expire_on_commit=..., _enable_transaction_accounting=..., autocommit=..., twophase=..., weak_identity_map=..., binds=..., extension=..., info=..., query_cls=...) -> None: ...
|
||||
connection_callable = ... # type: Any
|
||||
def info(self): ...
|
||||
def begin(self, subtransactions=..., nested=...): ...
|
||||
def begin_nested(self): ...
|
||||
def rollback(self): ...
|
||||
def commit(self): ...
|
||||
def prepare(self): ...
|
||||
def connection(self, mapper=..., clause=..., bind=..., close_with_result=..., execution_options=..., **kw): ...
|
||||
def execute(self, clause, params=..., mapper=..., bind=..., **kw): ...
|
||||
def scalar(self, clause, params=..., mapper=..., bind=..., **kw): ...
|
||||
def close(self): ...
|
||||
def invalidate(self): ...
|
||||
def expunge_all(self): ...
|
||||
def bind_mapper(self, mapper, bind): ...
|
||||
def bind_table(self, table, bind): ...
|
||||
def get_bind(self, mapper=..., clause=...): ...
|
||||
def query(self, *entities, **kwargs): ...
|
||||
@property
|
||||
def no_autoflush(self): ...
|
||||
def refresh(self, instance, attribute_names=..., lockmode=...): ...
|
||||
def expire_all(self): ...
|
||||
def expire(self, instance, attribute_names=...): ...
|
||||
def prune(self): ...
|
||||
def expunge(self, instance): ...
|
||||
def add(self, instance, _warn=...): ...
|
||||
def add_all(self, instances): ...
|
||||
def delete(self, instance): ...
|
||||
def merge(self, instance, load=...): ...
|
||||
def enable_relationship_loading(self, obj): ...
|
||||
def __contains__(self, instance): ...
|
||||
def __iter__(self): ...
|
||||
def flush(self, objects=...): ...
|
||||
def bulk_save_objects(self, objects, return_defaults=..., update_changed_only=...): ...
|
||||
def bulk_insert_mappings(self, mapper, mappings, return_defaults=...): ...
|
||||
def bulk_update_mappings(self, mapper, mappings): ...
|
||||
def is_modified(self, instance, include_collections=..., passive=...): ...
|
||||
@property
|
||||
def is_active(self): ...
|
||||
@property
|
||||
def dirty(self): ...
|
||||
@property
|
||||
def deleted(self): ...
|
||||
@property
|
||||
def new(self): ...
|
||||
|
||||
class sessionmaker(_SessionClassMethods):
|
||||
kw = ... # type: Any
|
||||
class_ = ... # type: Any
|
||||
def __init__(self, bind=..., class_=..., autoflush=..., autocommit=..., expire_on_commit=..., info=..., **kw) -> None: ...
|
||||
def __call__(self, **local_kw): ...
|
||||
def configure(self, **new_kw): ...
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# SessionExtension
|
||||
12
third_party/2and3/sqlalchemy/orm/util.pyi
vendored
12
third_party/2and3/sqlalchemy/orm/util.pyi
vendored
@@ -1,12 +0,0 @@
|
||||
# Stubs for sqlalchemy.orm.session (Python 2 and 3)
|
||||
from typing import Optional, Any, Text
|
||||
|
||||
from ..sql.selectable import FromClause
|
||||
|
||||
class AliasedClass(object):
|
||||
def __init__(self, cls: Any, alias: Optional[FromClause] =None, name: Optional[Text] =None, flat: bool =False, adapt_on_names: bool =False,
|
||||
with_polymorphic_mappers: Any =(), with_polymorphic_discriminator: Any =None, base_alias: Any =None, use_mapper_path: bool =False) -> None: ...
|
||||
def __getattr__(self, key): ...
|
||||
def __repr__(self): ...
|
||||
|
||||
def aliased(element: Any, alias: Optional[FromClause] =None, name: Optional[Text] =None, flat: bool =False, adapt_on_names: bool =False) -> AliasedClass: ...
|
||||
118
third_party/2and3/sqlalchemy/pool.pyi
vendored
118
third_party/2and3/sqlalchemy/pool.pyi
vendored
@@ -1,118 +0,0 @@
|
||||
# Stubs for sqlalchemy.pool (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from . import log
|
||||
from . import util
|
||||
|
||||
threading = util.threading
|
||||
memoized_property = util.memoized_property
|
||||
chop_traceback = util.chop_traceback
|
||||
|
||||
proxies = ... # type: Any
|
||||
|
||||
def manage(module, **params): ...
|
||||
def clear_managers(): ...
|
||||
|
||||
reset_rollback = ... # type: Any
|
||||
reset_commit = ... # type: Any
|
||||
reset_none = ... # type: Any
|
||||
|
||||
class _ConnDialect:
|
||||
def do_rollback(self, dbapi_connection): ...
|
||||
def do_commit(self, dbapi_connection): ...
|
||||
def do_close(self, dbapi_connection): ...
|
||||
|
||||
class Pool(log.Identified):
|
||||
logging_name = ... # type: Any
|
||||
echo = ... # type: Any
|
||||
def __init__(self, creator, recycle=..., echo=..., use_threadlocal=..., logging_name=..., reset_on_return=..., listeners=..., events=..., _dispatch=..., _dialect=...) -> None: ...
|
||||
def add_listener(self, listener): ...
|
||||
def unique_connection(self): ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def connect(self): ...
|
||||
def status(self): ...
|
||||
|
||||
_threadconns = ... # type: Any
|
||||
_creator = ... # type: Any
|
||||
_recycle = ... # type: Any
|
||||
_invalidate_time = ... # type: Any
|
||||
dispatch = ... # type: Any
|
||||
_dialect = ... # type: Any
|
||||
_orig_logging_name = ... # type: Any
|
||||
_reset_on_return = ... # type: Any
|
||||
_use_threadlocal = ... # type: Any
|
||||
|
||||
class _ConnectionRecord:
|
||||
connection = ... # type: Any
|
||||
finalize_callback = ... # type: Any
|
||||
def __init__(self, pool) -> None: ...
|
||||
def info(self): ...
|
||||
@classmethod
|
||||
def checkout(cls, pool): ...
|
||||
fairy_ref = ... # type: Any
|
||||
def checkin(self): ...
|
||||
def close(self): ...
|
||||
def invalidate(self, e=..., soft=...): ...
|
||||
def get_connection(self): ...
|
||||
|
||||
class _ConnectionFairy:
|
||||
connection = ... # type: Any
|
||||
def __init__(self, dbapi_connection, connection_record, echo) -> None: ...
|
||||
@property
|
||||
def is_valid(self): ...
|
||||
def info(self): ...
|
||||
def invalidate(self, e=..., soft=...): ...
|
||||
def cursor(self, *args, **kwargs): ...
|
||||
def __getattr__(self, key): ...
|
||||
def detach(self): ...
|
||||
def close(self): ...
|
||||
|
||||
class SingletonThreadPool(Pool):
|
||||
size = ... # type: Any
|
||||
def __init__(self, creator, pool_size=..., **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
|
||||
class QueuePool(Pool):
|
||||
def __init__(self, creator, pool_size=..., max_overflow=..., timeout=..., **kw) -> None: ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
def status(self): ...
|
||||
def size(self): ...
|
||||
def checkedin(self): ...
|
||||
def overflow(self): ...
|
||||
def checkedout(self): ...
|
||||
|
||||
class NullPool(Pool):
|
||||
def status(self): ...
|
||||
def recreate(self): ...
|
||||
def dispose(self): ...
|
||||
|
||||
class StaticPool(Pool):
|
||||
def connection(self): ...
|
||||
def status(self): ...
|
||||
def dispose(self): ...
|
||||
def recreate(self): ...
|
||||
|
||||
class AssertionPool(Pool):
|
||||
def __init__(self, *args, **kw) -> None: ...
|
||||
def status(self): ...
|
||||
def dispose(self): ...
|
||||
def recreate(self): ...
|
||||
|
||||
class _DBProxy:
|
||||
module = ... # type: Any
|
||||
kw = ... # type: Any
|
||||
poolclass = ... # type: Any
|
||||
pools = ... # type: Any
|
||||
def __init__(self, module, poolclass=..., **kw) -> None: ...
|
||||
def close(self): ...
|
||||
def __del__(self): ...
|
||||
def __getattr__(self, key): ...
|
||||
def get_pool(self, *args, **kw): ...
|
||||
def connect(self, *args, **kw): ...
|
||||
def dispose(self, *args, **kw): ...
|
||||
50
third_party/2and3/sqlalchemy/schema.pyi
vendored
50
third_party/2and3/sqlalchemy/schema.pyi
vendored
@@ -1,50 +0,0 @@
|
||||
# Stubs for sqlalchemy.schema (Python 2)
|
||||
|
||||
from .sql import base
|
||||
from .sql import schema
|
||||
from .sql import naming
|
||||
from .sql import ddl
|
||||
from .sql import elements
|
||||
|
||||
SchemaVisitor = base.SchemaVisitor
|
||||
CheckConstraint = schema.CheckConstraint
|
||||
Column = schema.Column
|
||||
ColumnDefault = schema.ColumnDefault
|
||||
Constraint = schema.Constraint
|
||||
DefaultClause = schema.DefaultClause
|
||||
DefaultGenerator = schema.DefaultGenerator
|
||||
FetchedValue = schema.FetchedValue
|
||||
ForeignKey = schema.ForeignKey
|
||||
ForeignKeyConstraint = schema.ForeignKeyConstraint
|
||||
Index = schema.Index
|
||||
MetaData = schema.MetaData
|
||||
PassiveDefault = schema.PassiveDefault
|
||||
PrimaryKeyConstraint = schema.PrimaryKeyConstraint
|
||||
SchemaItem = schema.SchemaItem
|
||||
Sequence = schema.Sequence
|
||||
Table = schema.Table
|
||||
ThreadLocalMetaData = schema.ThreadLocalMetaData
|
||||
UniqueConstraint = schema.UniqueConstraint
|
||||
_get_table_key = schema._get_table_key
|
||||
ColumnCollectionConstraint = schema.ColumnCollectionConstraint
|
||||
ColumnCollectionMixin = schema.ColumnCollectionMixin
|
||||
conv = elements.conv
|
||||
DDL = ddl.DDL
|
||||
CreateTable = ddl.CreateTable
|
||||
DropTable = ddl.DropTable
|
||||
CreateSequence = ddl.CreateSequence
|
||||
DropSequence = ddl.DropSequence
|
||||
CreateIndex = ddl.CreateIndex
|
||||
DropIndex = ddl.DropIndex
|
||||
CreateSchema = ddl.CreateSchema
|
||||
DropSchema = ddl.DropSchema
|
||||
_DropView = ddl._DropView
|
||||
CreateColumn = ddl.CreateColumn
|
||||
AddConstraint = ddl.AddConstraint
|
||||
DropConstraint = ddl.DropConstraint
|
||||
DDLBase = ddl.DDLBase
|
||||
DDLElement = ddl.DDLElement
|
||||
_CreateDropBase = ddl._CreateDropBase
|
||||
_DDLCompiles = ddl._DDLCompiles
|
||||
sort_tables = ddl.sort_tables
|
||||
sort_tables_and_constraints = ddl.sort_tables_and_constraints
|
||||
66
third_party/2and3/sqlalchemy/sql/__init__.pyi
vendored
66
third_party/2and3/sqlalchemy/sql/__init__.pyi
vendored
@@ -1,66 +0,0 @@
|
||||
# Stubs for sqlalchemy.sql (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from . import expression
|
||||
from . import visitors
|
||||
|
||||
Alias = expression.Alias
|
||||
ClauseElement = expression.ClauseElement
|
||||
ColumnCollection = expression.ColumnCollection
|
||||
ColumnElement = expression.ColumnElement
|
||||
CompoundSelect = expression.CompoundSelect
|
||||
Delete = expression.Delete
|
||||
FromClause = expression.FromClause
|
||||
Insert = expression.Insert
|
||||
Join = expression.Join
|
||||
Select = expression.Select
|
||||
Selectable = expression.Selectable
|
||||
TableClause = expression.TableClause
|
||||
Update = expression.Update
|
||||
alias = expression.alias
|
||||
and_ = expression.and_
|
||||
asc = expression.asc
|
||||
between = expression.between
|
||||
bindparam = expression.bindparam
|
||||
case = expression.case
|
||||
cast = expression.cast
|
||||
collate = expression.collate
|
||||
column = expression.column
|
||||
delete = expression.delete
|
||||
desc = expression.desc
|
||||
distinct = expression.distinct
|
||||
except_ = expression.except_
|
||||
except_all = expression.except_all
|
||||
exists = expression.exists
|
||||
extract = expression.extract
|
||||
false = expression.false
|
||||
False_ = expression.False_
|
||||
func = expression.func
|
||||
funcfilter = expression.funcfilter
|
||||
insert = expression.insert
|
||||
intersect = expression.intersect
|
||||
intersect_all = expression.intersect_all
|
||||
join = expression.join
|
||||
label = expression.label
|
||||
literal = expression.literal
|
||||
literal_column = expression.literal_column
|
||||
modifier = expression.modifier
|
||||
not_ = expression.not_
|
||||
null = expression.null
|
||||
or_ = expression.or_
|
||||
outerjoin = expression.outerjoin
|
||||
outparam = expression.outparam
|
||||
over = expression.over
|
||||
select = expression.select
|
||||
subquery = expression.subquery
|
||||
table = expression.table
|
||||
text = expression.text
|
||||
true = expression.true
|
||||
True_ = expression.True_
|
||||
tuple_ = expression.tuple_
|
||||
type_coerce = expression.type_coerce
|
||||
union = expression.union
|
||||
union_all = expression.union_all
|
||||
update = expression.update
|
||||
ClauseVisitor = visitors.ClauseVisitor
|
||||
11
third_party/2and3/sqlalchemy/sql/annotation.pyi
vendored
11
third_party/2and3/sqlalchemy/sql/annotation.pyi
vendored
@@ -1,11 +0,0 @@
|
||||
class Annotated(object):
|
||||
def __new__(cls, *args): ...
|
||||
def __init__(self, element, values): ...
|
||||
def _annotate(self, values): ...
|
||||
def _with_annotations(self, values): ...
|
||||
def _deannotate(self, values=..., clone: bool=...): ...
|
||||
def _compiler_dispatch(self, visitor, **kw): ...
|
||||
def _constructor(self): ...
|
||||
def _clone(self): ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self): ...
|
||||
42
third_party/2and3/sqlalchemy/sql/base.pyi
vendored
42
third_party/2and3/sqlalchemy/sql/base.pyi
vendored
@@ -1,42 +0,0 @@
|
||||
from typing import Any, Iterable
|
||||
|
||||
from .visitors import ClauseVisitor
|
||||
from .. import util
|
||||
|
||||
class Immutable(object):
|
||||
def unique_params(self, *optionaldict, **kwargs): ...
|
||||
def params(self, *optionaldict, **kwargs): ...
|
||||
def _clone(self) -> Immutable: ...
|
||||
|
||||
class DialectKWArgs(object):
|
||||
def argument_for(cls, dialect_name, argument_name, default): ...
|
||||
def kwargs(self): ...
|
||||
def dialect_options(self): ...
|
||||
|
||||
class Generative(object): ...
|
||||
|
||||
class Executable(Generative):
|
||||
def execution_options(self, **kw): ...
|
||||
def execute(self, *multiparams, **params): ...
|
||||
def scalar(self, *multiparams, **params): ...
|
||||
|
||||
@property
|
||||
def bind(self): ...
|
||||
|
||||
class SchemaEventTarget(object): ...
|
||||
class SchemaVisitor(ClauseVisitor): ...
|
||||
class ColumnCollection(util.OrderedProperties):
|
||||
def replace(self, column): ...
|
||||
def add(self, column): ...
|
||||
def clear(self): ...
|
||||
def remove(self, column): ...
|
||||
def update(self, iter: Iterable[Any]): ...
|
||||
def extend(self, iter: Iterable[Any]): ...
|
||||
def contains_column(self, col): ...
|
||||
def as_immutable(self): ...
|
||||
|
||||
class ImmutableColumnCollection(util.ImmutableProperties, ColumnCollection): ...
|
||||
|
||||
class ColumnSet(util.ordered_column_set): ...
|
||||
|
||||
def _bind_or_error(schemaitem, msg): ...
|
||||
25
third_party/2and3/sqlalchemy/sql/ddl.pyi
vendored
25
third_party/2and3/sqlalchemy/sql/ddl.pyi
vendored
@@ -1,25 +0,0 @@
|
||||
from .elements import ClauseElement
|
||||
from .base import Executable, SchemaVisitor
|
||||
|
||||
class _DDLCompiles(ClauseElement): ...
|
||||
class DDLElement(Executable, _DDLCompiles): ...
|
||||
class DDL(DDLElement): ...
|
||||
class _CreateDropBase(DDLElement): ...
|
||||
class CreateSchema(_CreateDropBase): ...
|
||||
class DropSchema(_CreateDropBase): ...
|
||||
class CreateTable(_CreateDropBase): ...
|
||||
class _DropView(_CreateDropBase): ...
|
||||
class CreateColumn(_DDLCompiles): ...
|
||||
class DropTable(_CreateDropBase): ...
|
||||
class CreateSequence(_CreateDropBase): ...
|
||||
class DropSequence(_CreateDropBase): ...
|
||||
class CreateIndex(_CreateDropBase): ...
|
||||
class DropIndex(_CreateDropBase): ...
|
||||
class AddConstraint(_CreateDropBase): ...
|
||||
class DropConstraint(_CreateDropBase): ...
|
||||
class DDLBase(SchemaVisitor): ...
|
||||
class SchemaGenerator(DDLBase): ...
|
||||
class SchemaDropper(DDLBase): ...
|
||||
|
||||
def sort_tables(tables, skip_fn=..., extra_dependencies=...): ...
|
||||
def sort_tables_and_constraints(tables, filter_fn=..., extra_dependencies=...): ...
|
||||
20
third_party/2and3/sqlalchemy/sql/dml.pyi
vendored
20
third_party/2and3/sqlalchemy/sql/dml.pyi
vendored
@@ -1,20 +0,0 @@
|
||||
from typing import AnyStr
|
||||
|
||||
from .base import Executable, DialectKWArgs
|
||||
from .elements import ClauseElement
|
||||
from .selectable import HasPrefixes
|
||||
|
||||
class UpdateBase(DialectKWArgs, HasPrefixes, Executable, ClauseElement):
|
||||
def params(self, *arg, **kw): ...
|
||||
@property
|
||||
def bind(self): ...
|
||||
def returning(self, *cols): ...
|
||||
def with_hint(self, text, selectable=..., dialect_name: AnyStr=...): ...
|
||||
|
||||
class ValuesBase(UpdateBase):
|
||||
def values(self, *args, **kwargs): ...
|
||||
def return_defaults(self, *cols): ...
|
||||
|
||||
class Insert(ValuesBase): ...
|
||||
class Update(ValuesBase): ...
|
||||
class Delete(UpdateBase): ...
|
||||
93
third_party/2and3/sqlalchemy/sql/elements.pyi
vendored
93
third_party/2and3/sqlalchemy/sql/elements.pyi
vendored
@@ -1,93 +0,0 @@
|
||||
# Stubs for sqlalchemy.sql.elements (Python 2 and 3)
|
||||
from typing import Text, Any
|
||||
|
||||
from .visitors import Visitable
|
||||
from .annotation import Annotated
|
||||
from .base import Executable, Immutable
|
||||
from .operators import ColumnOperators
|
||||
from .. import util
|
||||
|
||||
class ClauseElement(Visitable): ...
|
||||
|
||||
class ColumnElement(ColumnOperators, ClauseElement):
|
||||
__visit_name__ = 'column' # type: Text
|
||||
primary_key = False # type: Any
|
||||
foreign_keys = [] # type: Any
|
||||
_label = None # type: Any
|
||||
_key_label = key = None # type: Any
|
||||
_alt_names = () # type: Any
|
||||
def self_group(self, against=None): ...
|
||||
def _negate(self): ...
|
||||
@util.memoized_property
|
||||
def type(self): ...
|
||||
@util.memoized_property
|
||||
def comparator(self): ...
|
||||
def __getattr__(self, key): ...
|
||||
def operate(self, op, *other, **kwargs): ...
|
||||
def reverse_operate(self, op, other, **kwargs): ...
|
||||
def _bind_param(self, operator, obj): ...
|
||||
@property
|
||||
def expression(self): ...
|
||||
@property
|
||||
def _select_iterable(self): ...
|
||||
@util.memoized_property
|
||||
def base_columns(self): ...
|
||||
@util.memoized_property
|
||||
def proxy_set(self): ...
|
||||
def shares_lineage(self, othercolumn): ...
|
||||
def _compare_name_for_result(self, other): ...
|
||||
def _make_proxy(self, selectable, name=None, name_is_truncatable=False, **kw): ...
|
||||
def compare(self, other, use_proxies=False, equivalents=None, **kw): ...
|
||||
def label(self, name): ...
|
||||
@util.memoized_property
|
||||
def anon_label(self): ...
|
||||
|
||||
class BindParameter(ColumnElement): ...
|
||||
class BinaryExpression(ColumnElement): ...
|
||||
|
||||
class TypeClause(ClauseElement): ...
|
||||
class TextClause(Executable, ClauseElement): ...
|
||||
|
||||
class Null(ColumnElement): ...
|
||||
class False_(ColumnElement): ...
|
||||
class True_(ColumnElement): ...
|
||||
|
||||
class ClauseList(ClauseElement): ...
|
||||
class BooleanClauseList(ClauseList, ColumnElement): ...
|
||||
class Tuple(ClauseList, ColumnElement): ...
|
||||
class Case(ColumnElement): ...
|
||||
class Cast(ColumnElement): ...
|
||||
class Extract(ColumnElement): ...
|
||||
class _label_reference(ColumnElement): ...
|
||||
|
||||
class _textual_label_reference(ColumnElement): ...
|
||||
class UnaryExpression(ColumnElement): ...
|
||||
class AsBoolean(UnaryExpression): ...
|
||||
class Grouping(ColumnElement): ...
|
||||
class Over(ColumnElement): ...
|
||||
class FunctionFilter(ColumnElement): ...
|
||||
class Label(ColumnElement): ...
|
||||
class ColumnClause(Immutable, ColumnElement): ...
|
||||
class _IdentifiedClause(Executable, ClauseElement): ...
|
||||
class SavepointClause(_IdentifiedClause): ...
|
||||
class RollbackToSavepointClause(_IdentifiedClause): ...
|
||||
class ReleaseSavepointClause(_IdentifiedClause): ...
|
||||
class quoted_name(util.MemoizedSlots, util.text_type): ...
|
||||
class _truncated_label(quoted_name): ...
|
||||
class conv(_truncated_label): ...
|
||||
class _defer_name(_truncated_label): ...
|
||||
class _defer_none_name(_defer_name): ...
|
||||
class _anonymous_label(_truncated_label): ...
|
||||
class AnnotatedColumnElement(Annotated): ...
|
||||
|
||||
def _clone(element, **kw): ...
|
||||
def _type_from_args(args): ...
|
||||
def _literal_as_binds(element, name, type_=None): ...
|
||||
|
||||
def collate(expression, collation) -> BinaryExpression: ...
|
||||
def between(expr, lower_bound, upper_bound, symmetric: bool=...): ...
|
||||
def literal(value, type_=None) -> BindParameter: ...
|
||||
def outparam(key, type_=None) -> BindParameter: ...
|
||||
def type_coerce(expression, type_): ...
|
||||
def not_(clause): ...
|
||||
def literal_column(text, type_=None): ...
|
||||
87
third_party/2and3/sqlalchemy/sql/expression.pyi
vendored
87
third_party/2and3/sqlalchemy/sql/expression.pyi
vendored
@@ -1,87 +0,0 @@
|
||||
# Stubs for sqlalchemy.sql.expression (Python 2)
|
||||
|
||||
from typing import Any
|
||||
from . import functions
|
||||
from . import elements
|
||||
from . import base
|
||||
from . import selectable
|
||||
from . import dml
|
||||
|
||||
from .visitors import Visitable
|
||||
|
||||
from .elements import ClauseElement, ColumnElement,\
|
||||
BindParameter, UnaryExpression, BooleanClauseList, \
|
||||
Label, Cast, Case, ColumnClause, TextClause, Over, Null, \
|
||||
True_, False_, BinaryExpression, Tuple, TypeClause, Extract, \
|
||||
Grouping, not_, \
|
||||
collate, literal_column, between,\
|
||||
literal, outparam, type_coerce, ClauseList, FunctionFilter
|
||||
from .elements import SavepointClause, RollbackToSavepointClause, \
|
||||
ReleaseSavepointClause
|
||||
from .base import ColumnCollection, Generative, Executable
|
||||
from .selectable import Alias, Join, Select, Selectable, TableClause, \
|
||||
CompoundSelect, CTE, FromClause, FromGrouping, SelectBase, \
|
||||
alias, GenerativeSelect, \
|
||||
subquery, HasPrefixes, HasSuffixes, Exists, ScalarSelect, TextAsFrom
|
||||
from .dml import Insert, Update, Delete, UpdateBase, ValuesBase
|
||||
|
||||
func = functions.func # type: functions._FunctionGenerator
|
||||
modifier = functions.modifier # type: functions._FunctionGenerator
|
||||
|
||||
and_ = ... # type: Any
|
||||
or_ = ... # type: Any
|
||||
bindparam = ... # type: Any
|
||||
select = ... # type: Any
|
||||
text = ... # type: Any
|
||||
table = ... # type: Any
|
||||
column = ... # type: Any
|
||||
over = ... # type: Any
|
||||
label = ... # type: Any
|
||||
case = ... # type: Any
|
||||
cast = ... # type: Any
|
||||
extract = ... # type: Any
|
||||
tuple_ = ... # type: Any
|
||||
except_ = ... # type: Any
|
||||
except_all = ... # type: Any
|
||||
intersect = ... # type: Any
|
||||
intersect_all = ... # type: Any
|
||||
union = ... # type: Any
|
||||
union_all = ... # type: Any
|
||||
exists = ... # type: Any
|
||||
nullsfirst = ... # type: Any
|
||||
nullslast = ... # type: Any
|
||||
asc = ... # type: Any
|
||||
desc = ... # type: Any
|
||||
distinct = ... # type: Any
|
||||
true = ... # type: Any
|
||||
false = ... # type: Any
|
||||
null = ... # type: Any
|
||||
join = ... # type: Any
|
||||
outerjoin = ... # type: Any
|
||||
insert = ... # type: Any
|
||||
update = ... # type: Any
|
||||
delete = ... # type: Any
|
||||
funcfilter = ... # type: Any
|
||||
|
||||
# old names for compatibility
|
||||
_Executable = Executable
|
||||
_BindParamClause = BindParameter
|
||||
_Label = Label
|
||||
_SelectBase = SelectBase
|
||||
_BinaryExpression = BinaryExpression
|
||||
_Cast = Cast
|
||||
_Null = Null
|
||||
_False = False_
|
||||
_True = True_
|
||||
_TextClause = TextClause
|
||||
_UnaryExpression = UnaryExpression
|
||||
_Case = Case
|
||||
_Tuple = Tuple
|
||||
_Over = Over
|
||||
_Generative = Generative
|
||||
_TypeClause = TypeClause
|
||||
_Extract = Extract
|
||||
_Exists = Exists
|
||||
_Grouping = Grouping
|
||||
_FromGrouping = FromGrouping
|
||||
_ScalarSelect = ScalarSelect
|
||||
47
third_party/2and3/sqlalchemy/sql/functions.pyi
vendored
47
third_party/2and3/sqlalchemy/sql/functions.pyi
vendored
@@ -1,47 +0,0 @@
|
||||
|
||||
from .base import Executable, ColumnCollection
|
||||
from .elements import ClauseList, Cast, Extract, _literal_as_binds, \
|
||||
literal_column, _type_from_args, ColumnElement, _clone,\
|
||||
Over, BindParameter, FunctionFilter
|
||||
from .selectable import FromClause, Select, Alias
|
||||
from .visitors import VisitableType
|
||||
|
||||
class FunctionElement(Executable, ColumnElement, FromClause): ...
|
||||
|
||||
class _FunctionGenerator(object):
|
||||
def __init__(self, **opts): ...
|
||||
def __getattr__(self, name): ...
|
||||
def __call__(self, *c, **kwargs) -> Function: ...
|
||||
|
||||
func = ... # type: _FunctionGenerator
|
||||
modifier = ... # type: _FunctionGenerator
|
||||
|
||||
class Function(FunctionElement): ...
|
||||
|
||||
class _GenericMeta(VisitableType): ...
|
||||
# TODO: Use GenericFunction(util.with_metaclass(_GenericMeta, Function))
|
||||
class GenericFunction(_GenericMeta, Function): ...
|
||||
class next_value(GenericFunction): ...
|
||||
|
||||
class AnsiFunction(GenericFunction): ...
|
||||
class ReturnTypeFromArgs(GenericFunction): ...
|
||||
|
||||
class coalesce(ReturnTypeFromArgs): ...
|
||||
class max(ReturnTypeFromArgs): ...
|
||||
class min(ReturnTypeFromArgs): ...
|
||||
class sum(ReturnTypeFromArgs): ...
|
||||
class now(GenericFunction): ...
|
||||
class concat(GenericFunction): ...
|
||||
|
||||
class char_length(GenericFunction): ...
|
||||
class random(GenericFunction): ...
|
||||
class count(GenericFunction): ...
|
||||
class current_date(AnsiFunction): ...
|
||||
class current_time(AnsiFunction): ...
|
||||
class current_timestamp(AnsiFunction): ...
|
||||
class current_user(AnsiFunction): ...
|
||||
class localtime(AnsiFunction): ...
|
||||
class localtimestamp(AnsiFunction): ...
|
||||
class session_user(AnsiFunction): ...
|
||||
class sysdate(AnsiFunction): ...
|
||||
class user(AnsiFunction): ...
|
||||
1
third_party/2and3/sqlalchemy/sql/naming.pyi
vendored
1
third_party/2and3/sqlalchemy/sql/naming.pyi
vendored
@@ -1 +0,0 @@
|
||||
class ConventionDict(object): ...
|
||||
99
third_party/2and3/sqlalchemy/sql/operators.pyi
vendored
99
third_party/2and3/sqlalchemy/sql/operators.pyi
vendored
@@ -1,99 +0,0 @@
|
||||
from typing import Any, AnyStr, Callable
|
||||
|
||||
class Operators(object):
|
||||
def op(self, opstring: AnyStr, precedence: int, is_comparison: bool): ...
|
||||
def operate(self, op: Callable[[Any], Any], *other, **kwargs): ...
|
||||
def reverse_operator(self, op: Callable[[Any], Any], *other, **kwargs): ...
|
||||
def __and__(self, other): ...
|
||||
def __or__(self, other): ...
|
||||
def __invert__(self): ...
|
||||
|
||||
|
||||
class ColumnOperators(Operators):
|
||||
def concat(self, other): ...
|
||||
def like(self, other, escape=None): ...
|
||||
def ilike(self, other, escape=None): ...
|
||||
def notlike(self, other, escape=None): ...
|
||||
def notilike(self, other, escape=None): ...
|
||||
def in_(self, other): ...
|
||||
def notin_(self, other): ...
|
||||
def is_(self, other): ...
|
||||
def startswith(self, other, **kwargs): ...
|
||||
def endswith(self, other, **kwargs): ...
|
||||
def contains(self, other, **kwargs): ...
|
||||
def match(self, other, **kwargs): ...
|
||||
def desc(self): ...
|
||||
def asc(self): ...
|
||||
def nullsfirst(self): ...
|
||||
def nullslast(self): ...
|
||||
def collate(self, collation): ...
|
||||
def between(self, cleft, cright, symmetric: bool = ...): ...
|
||||
def distinct(self): ...
|
||||
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
def __neg__(self, other): ...
|
||||
def __getitem__(self, index): ...
|
||||
def __lshift__(self, other): ...
|
||||
def __rshift__(self, other): ...
|
||||
|
||||
def __radd__(self, other): ...
|
||||
def __rsub__(self, other): ...
|
||||
def __rmul__(self, other): ...
|
||||
def __rdiv__(self, other): ...
|
||||
def __rmod__(self, other): ...
|
||||
def __add__(self, other): ...
|
||||
def __sub__(self, other): ...
|
||||
def __mul__(self, other): ...
|
||||
def __div__(self, other): ...
|
||||
def __mod__(self, other): ...
|
||||
def __truediv__(self, other): ...
|
||||
def __rtruediv__(self, other): ...
|
||||
|
||||
def from_(): ...
|
||||
def as_(): ...
|
||||
def exists(): ...
|
||||
def istrue(a): ...
|
||||
def isfalse(a): ...
|
||||
def is_(a, b): ...
|
||||
def isnot(a, b): ...
|
||||
def collate(a, b): ...
|
||||
def op(a, opstring, b): ...
|
||||
|
||||
def like_op(a, b, escape=None): ...
|
||||
def notlike_op(a, b, escape=None): ...
|
||||
def ilike_op(a, b, escape=None): ...
|
||||
def notilike_op(a, b, escape=None): ...
|
||||
def between_op(a, b, symmetric: bool): ...
|
||||
def notbetween_(a, b, symmetric: bool): ...
|
||||
|
||||
def in_op(a, b): ...
|
||||
def notin_op(a, b): ...
|
||||
def distinct_op(a): ...
|
||||
|
||||
def startswith_op(a, b, escape=None): ...
|
||||
def notstartswith_op(a, b, escape=None): ...
|
||||
def endswith_op(a, b, escape=None): ...
|
||||
def notendswith_op(a, b, escape=None): ...
|
||||
def contains_op(a, b, escape=None): ...
|
||||
def notcontains_op(a, b, escape=None): ...
|
||||
|
||||
def match_op(a, b, **kw): ...
|
||||
def notmatch_op(a, b, **kw): ...
|
||||
|
||||
def comma_op(a, b): ...
|
||||
def concat_op(a, b): ...
|
||||
|
||||
def desc_op(a): ...
|
||||
def asc_op(a): ...
|
||||
def nullsfirst_op(a): ...
|
||||
def nullslast_op(a): ...
|
||||
|
||||
def is_comparison(op): ...
|
||||
def is_commutative(op): ...
|
||||
def is_ordering_modified(op): ...
|
||||
def is_precedent(operator, against): ...
|
||||
126
third_party/2and3/sqlalchemy/sql/schema.pyi
vendored
126
third_party/2and3/sqlalchemy/sql/schema.pyi
vendored
@@ -1,126 +0,0 @@
|
||||
from typing import Any, AnyStr, Set
|
||||
|
||||
from .base import SchemaEventTarget, DialectKWArgs
|
||||
from .base import ColumnCollection
|
||||
from .elements import ClauseElement, ColumnClause, TextClause, \
|
||||
ColumnElement
|
||||
from .selectable import TableClause
|
||||
|
||||
from . import visitors
|
||||
|
||||
class SchemaItem(SchemaEventTarget, visitors.Visitable):
|
||||
def _execute_on_connection(self, connection, multiparams, params): ...
|
||||
@property
|
||||
def info(self): ...
|
||||
@property
|
||||
def quote(self): ...
|
||||
def get_children(self, **kwargs): ...
|
||||
def _init_items(self, *args): ...
|
||||
def _schema_item_copy(self, schema_item): ...
|
||||
def __repr__(self): ...
|
||||
|
||||
|
||||
class Table(DialectKWArgs, SchemaItem, TableClause):
|
||||
def __init__(self, name, metadata, *args, **kwargs): ...
|
||||
@property
|
||||
def key(self): ...
|
||||
@property
|
||||
def primary_key(self): ...
|
||||
def __repr__(self): ...
|
||||
def __str__(self): ...
|
||||
def append_column(self, column): ...
|
||||
def append_constraint(self, constraint): ...
|
||||
def append_ddl_listener(self, event, listener): ...
|
||||
def get_children(self, column_collections=True, schema_visitor=False, **kwargs): ...
|
||||
def exists(self, bind=None): ...
|
||||
def create(self, bind=None, checkfirst=False): ...
|
||||
def drop(self, bind=None, checkfirst=False): ...
|
||||
def tometadata(self, metadata, schema=None): ...
|
||||
c = ... # type: ColumnCollection
|
||||
constraints = ... # type: Set[Constraint]
|
||||
|
||||
|
||||
class Column(SchemaItem, ColumnClause):
|
||||
primary_key = ... # type: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def references(self, column): ...
|
||||
def append_foreign_key(self, fk): ...
|
||||
def __repr__(self): ...
|
||||
def _set_parent(self, table): ...
|
||||
def _setup_on_memoized_fks(self, fn): ...
|
||||
def _on_table_attach(self, fn): ...
|
||||
def copy(self, **kw): ...
|
||||
def _make_proxy(self, selectable, name=None, key=None,
|
||||
name_is_truncatable=False, **kw): ...
|
||||
def get_children(self, schema_visitor=False, **kwargs): ...
|
||||
|
||||
|
||||
class ForeignKey(DialectKWArgs, SchemaItem):
|
||||
def __init__(self, column, _constraint=None, use_alter=False, name=None,
|
||||
onupdate=None, ondelete=None, deferrable=None,
|
||||
initially=None, link_to_name=False, match=None,
|
||||
info=None, **dialect_kw) -> None: ...
|
||||
def __repr__(self): ...
|
||||
def copy(self, schema=None): ...
|
||||
def _get_colspec(self, schema=None, table_name=None): ...
|
||||
@property
|
||||
def _referred_schema(self): ...
|
||||
def _table_key(self): ...
|
||||
def references(self, table): ...
|
||||
def get_referent(self, table): ...
|
||||
@property
|
||||
def _column_tokens(self): ...
|
||||
def _resolve_col_tokens(self): ...
|
||||
def _link_to_col_by_colstring(self, parenttable, table, colname): ...
|
||||
def _set_target_column(self, column): ...
|
||||
@property
|
||||
def column(self): ...
|
||||
def _set_parent(self, column): ...
|
||||
def _set_remote_table(self, table): ...
|
||||
def _remove_from_metadata(self, metadata): ...
|
||||
def _set_table(self, column, table): ...
|
||||
|
||||
class _NotAColumnExpr(object): ...
|
||||
class DefaultGenerator(_NotAColumnExpr, SchemaItem): ...
|
||||
class ColumnDefault(DefaultGenerator): ...
|
||||
class Sequence(DefaultGenerator): ...
|
||||
class FetchedValue(_NotAColumnExpr, SchemaEventTarget): ...
|
||||
class DefaultClause(FetchedValue): ...
|
||||
class PassiveDefault(DefaultClause): ...
|
||||
|
||||
class Constraint(DialectKWArgs, SchemaItem):
|
||||
def __init__(self, name=None, deferrable=None, initially=None): ...
|
||||
def __contains__(self, x): ...
|
||||
def contains_column(self, col): ...
|
||||
def keys(self): ...
|
||||
def __add__(self, other): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def copy(self, **kw): ...
|
||||
|
||||
class ColumnCollectionMixin(object):
|
||||
columns = ... # type: Any
|
||||
def __init__(self, *columns, **kw): ...
|
||||
@classmethod
|
||||
def _extract_col_expression_collection(cls, expressions): ...
|
||||
def _check_attach(self, evt=False): ...
|
||||
def _set_parent(self, table): ...
|
||||
|
||||
class ColumnCollectionConstraint(ColumnCollectionMixin, Constraint):
|
||||
def __init__(self, *columns, **kw): ...
|
||||
def _set_parent(self, table): ...
|
||||
def __contains__(self, x): ...
|
||||
def copy(self, **kw): ...
|
||||
def contains_column(self, col): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
|
||||
class CheckConstraint(ColumnCollectionConstraint): ...
|
||||
class ForeignKeyConstraint(ColumnCollectionConstraint): ...
|
||||
class PrimaryKeyConstraint(ColumnCollectionConstraint): ...
|
||||
class UniqueConstraint(ColumnCollectionConstraint): ...
|
||||
class Index(DialectKWArgs, ColumnCollectionMixin, SchemaItem): ...
|
||||
class MetaData(SchemaItem): ...
|
||||
class ThreadLocalMetaData(MetaData): ...
|
||||
|
||||
def _get_table_key(name: AnyStr, schema: AnyStr): ...
|
||||
82
third_party/2and3/sqlalchemy/sql/selectable.pyi
vendored
82
third_party/2and3/sqlalchemy/sql/selectable.pyi
vendored
@@ -1,82 +0,0 @@
|
||||
from typing import Any
|
||||
|
||||
from .base import Immutable, Executable, \
|
||||
ColumnCollection, ColumnSet, Generative
|
||||
from .elements import ClauseElement, TextClause, ClauseList, \
|
||||
Grouping, UnaryExpression, BindParameter
|
||||
from .annotation import Annotated
|
||||
from .visitors import Visitable
|
||||
from .. import util
|
||||
|
||||
def subquery(alias, *args, **kwargs): ...
|
||||
def alias(selectable, name=..., flat: bool=...): ...
|
||||
|
||||
class Selectable(ClauseElement):
|
||||
def selectable(self): ...
|
||||
|
||||
class HasPrefixes(object):
|
||||
def prefix_with(self, *expr, **kw): ...
|
||||
|
||||
class HasSuffixes(object):
|
||||
def suffix_with(self, *expr, **kw): ...
|
||||
|
||||
class FromClause(Selectable):
|
||||
def count(self, functions, whereclause=None, **params): ...
|
||||
def select(self, whereclause=None, **params): ...
|
||||
def join(self, right, onclause=None, isouter: bool=False): ...
|
||||
def outerjoin(self, right, onclause=None): ...
|
||||
def alias(self, name=None, flat: bool=False): ...
|
||||
def is_derived_from(self, fromclause): ...
|
||||
def _is_lexical_equivalent(self, other): ...
|
||||
def replace_selectable(self, sqlutil, old, alias): ...
|
||||
def correspond_on_equivalents(self, column, equivalents): ...
|
||||
def corresponding_column(self, column, require_embedded: bool=False): ...
|
||||
@property
|
||||
def description(self): ...
|
||||
def _reset_exported(self): ...
|
||||
@property
|
||||
def columns(self): ...
|
||||
@property
|
||||
def primary_key(self) -> Any: ...
|
||||
@property
|
||||
def foreign_keys(self) -> Any: ...
|
||||
def _init_collections(self): ...
|
||||
@property
|
||||
def _cols_populated(self): ...
|
||||
def _populate_column_collection(self): ...
|
||||
def _refresh_for_new_column(self, column): ...
|
||||
|
||||
class Join(FromClause): ...
|
||||
class Alias(FromClause): ...
|
||||
class CTE(Generative, HasSuffixes, Alias): ...
|
||||
class FromGrouping(FromClause): ...
|
||||
|
||||
class TableClause(Immutable, FromClause):
|
||||
def __init__(self, name, *columns): ...
|
||||
def _export_columns(self): ...
|
||||
@util.memoized_property
|
||||
def description(self): ...
|
||||
def append_column(self, c): ...
|
||||
def get_children(self, **kwargs): ...
|
||||
def count(self, whereclause=None, **params): ...
|
||||
def insert(self, values=None, inline=False, **kwargs): ...
|
||||
def update(self, whereclause=None, values=None, inline=False, **kwargs): ...
|
||||
def delete(self, whereclause=None, **kwargs): ...
|
||||
@property
|
||||
def _from_objects(self): ...
|
||||
|
||||
class ForUpdateArg(ClauseElement): ...
|
||||
class SelectBase(Executable, FromClause): ...
|
||||
class GenerativeSelect(SelectBase): ...
|
||||
class CompoundSelect(GenerativeSelect): ...
|
||||
|
||||
class Select(HasPrefixes, HasSuffixes, GenerativeSelect):
|
||||
def where(self, whereclause) -> Select: ...
|
||||
def group_by(self, *clauses) -> Select: ...
|
||||
def order_by(self, *clauses) -> Select: ...
|
||||
def limit(self, limit: int) -> Select: ...
|
||||
|
||||
class ScalarSelect(Generative, Grouping): ...
|
||||
class Exists(UnaryExpression): ...
|
||||
class TextAsFrom(SelectBase): ...
|
||||
class AnnotatedFromClause(Annotated): ...
|
||||
57
third_party/2and3/sqlalchemy/sql/sqltypes.pyi
vendored
57
third_party/2and3/sqlalchemy/sql/sqltypes.pyi
vendored
@@ -1,57 +0,0 @@
|
||||
from .type_api import TypeEngine, TypeDecorator
|
||||
from .base import SchemaEventTarget
|
||||
|
||||
class _DateAffinity(object): ...
|
||||
class Concatenable(object): ...
|
||||
class String(TypeEngine, Concatenable):
|
||||
def __init__(self, length=None, collation=None,
|
||||
convert_unicode=False,
|
||||
unicode_error=None,
|
||||
_warn_on_bytestring=False): ...
|
||||
|
||||
class Text(String): ...
|
||||
class Unicode(String): ...
|
||||
class UnicodeText(Text): ...
|
||||
class Integer(TypeEngine, _DateAffinity): ...
|
||||
class SmallInteger(Integer): ...
|
||||
class BigInteger(Integer): ...
|
||||
class Numeric(TypeEngine, _DateAffinity): ...
|
||||
class Float(Numeric): ...
|
||||
class DateTime(TypeEngine, _DateAffinity):
|
||||
def __init__(self, timezone=None): ...
|
||||
class Date(TypeEngine, _DateAffinity): ...
|
||||
class Time(TypeEngine, _DateAffinity): ...
|
||||
class _Binary(TypeEngine): ...
|
||||
class LargeBinary(_Binary): ...
|
||||
class Binary(LargeBinary): ...
|
||||
class SchemaType(SchemaEventTarget): ...
|
||||
class Enum(String, SchemaType): ...
|
||||
class PickleType(TypeDecorator): ...
|
||||
class Boolean(TypeEngine, SchemaType): ...
|
||||
class Interval(_DateAffinity, TypeDecorator): ...
|
||||
|
||||
class REAL(Float): ...
|
||||
class FLOAT(Float): ...
|
||||
class NUMERIC(Numeric): ...
|
||||
class DECIMAL(Numeric): ...
|
||||
class INTEGER(Integer): ...
|
||||
# In code it's INT=INTEGER
|
||||
class INT(Integer): ...
|
||||
class SMALLINT(SmallInteger): ...
|
||||
class BIGINT(BigInteger): ...
|
||||
class TIMESTAMP(DateTime): ...
|
||||
class DATETIME(DateTime): ...
|
||||
class DATE(Date): ...
|
||||
class TIME(Time): ...
|
||||
class TEXT(Text): ...
|
||||
class CLOB(Text): ...
|
||||
class VARCHAR(String): ...
|
||||
class NVARCHAR(Unicode): ...
|
||||
class CHAR(String): ...
|
||||
class NCHAR(Unicode): ...
|
||||
class BLOB(LargeBinary): ...
|
||||
class BINARY(_Binary): ...
|
||||
class VARBINARY(_Binary): ...
|
||||
class BOOLEAN(Boolean): ...
|
||||
class NullType(TypeEngine): ...
|
||||
class MatchType(Boolean): ...
|
||||
16
third_party/2and3/sqlalchemy/sql/type_api.pyi
vendored
16
third_party/2and3/sqlalchemy/sql/type_api.pyi
vendored
@@ -1,16 +0,0 @@
|
||||
from .. import util
|
||||
from .visitors import Visitable, VisitableType
|
||||
|
||||
class TypeEngine(Visitable):
|
||||
@property
|
||||
def python_type(self): ...
|
||||
def get_dbapi_type(self, dbapi): ...
|
||||
def literal_processor(self, dialect): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class VisitableCheckKWArg(util.EnsureKWArgType, VisitableType): ...
|
||||
# TODO: class UserDefinedType(util.with_metaclass(VisitableCheckKWArg, TypeEngine)):
|
||||
class UserDefinedType(VisitableCheckKWArg, TypeEngine): ...
|
||||
class TypeDecorator(TypeEngine): ...
|
||||
class Variant(TypeDecorator): ...
|
||||
33
third_party/2and3/sqlalchemy/sql/visitors.pyi
vendored
33
third_party/2and3/sqlalchemy/sql/visitors.pyi
vendored
@@ -1,33 +0,0 @@
|
||||
# Stubs for sqlalchemy.sql.visitors (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class VisitableType(type):
|
||||
def __init__(cls, clsname, bases, clsdict) -> None: ...
|
||||
|
||||
class Visitable: ...
|
||||
|
||||
class ClauseVisitor:
|
||||
__traverse_options__ = ... # type: Any
|
||||
def traverse_single(self, obj, **kw): ...
|
||||
def iterate(self, obj): ...
|
||||
def traverse(self, obj): ...
|
||||
def chain(self, visitor): ...
|
||||
|
||||
class CloningVisitor(ClauseVisitor):
|
||||
def copy_and_process(self, list_): ...
|
||||
def traverse(self, obj): ...
|
||||
|
||||
class ReplacingCloningVisitor(CloningVisitor):
|
||||
def replace(self, elem): ...
|
||||
def traverse(self, obj): ...
|
||||
|
||||
def iterate(obj, opts): ...
|
||||
def iterate_depthfirst(obj, opts): ...
|
||||
def traverse_using(iterator, obj, visitors): ...
|
||||
def traverse(obj, opts, visitors): ...
|
||||
def traverse_depthfirst(obj, opts, visitors): ...
|
||||
def cloned_traverse(obj, opts, visitors): ...
|
||||
def replacement_traverse(obj, opts, replace): ...
|
||||
51
third_party/2and3/sqlalchemy/types.pyi
vendored
51
third_party/2and3/sqlalchemy/types.pyi
vendored
@@ -1,51 +0,0 @@
|
||||
# Stubs for sqlalchemy.types (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from .sql import type_api
|
||||
from .sql import sqltypes
|
||||
|
||||
TypeEngine = type_api.TypeEngine
|
||||
TypeDecorator = type_api.TypeDecorator
|
||||
UserDefinedType = type_api.UserDefinedType
|
||||
BIGINT = sqltypes.BIGINT
|
||||
BINARY = sqltypes.BINARY
|
||||
BLOB = sqltypes.BLOB
|
||||
BOOLEAN = sqltypes.BOOLEAN
|
||||
BigInteger = sqltypes.BigInteger
|
||||
Binary = sqltypes.Binary
|
||||
Boolean = sqltypes.Boolean
|
||||
CHAR = sqltypes.CHAR
|
||||
CLOB = sqltypes.CLOB
|
||||
Concatenable = sqltypes.Concatenable
|
||||
DATE = sqltypes.DATE
|
||||
DATETIME = sqltypes.DATETIME
|
||||
DECIMAL = sqltypes.DECIMAL
|
||||
Date = sqltypes.Date
|
||||
DateTime = sqltypes.DateTime
|
||||
Enum = sqltypes.Enum
|
||||
FLOAT = sqltypes.FLOAT
|
||||
Float = sqltypes.Float
|
||||
INT = sqltypes.INT
|
||||
INTEGER = sqltypes.INTEGER
|
||||
Integer = sqltypes.Integer
|
||||
Interval = sqltypes.Interval
|
||||
LargeBinary = sqltypes.LargeBinary
|
||||
NCHAR = sqltypes.NCHAR
|
||||
NVARCHAR = sqltypes.NVARCHAR
|
||||
NUMERIC = sqltypes.NUMERIC
|
||||
Numeric = sqltypes.Numeric
|
||||
PickleType = sqltypes.PickleType
|
||||
REAL = sqltypes.REAL
|
||||
SMALLINT = sqltypes.SMALLINT
|
||||
SmallInteger = sqltypes.SmallInteger
|
||||
String = sqltypes.String
|
||||
TEXT = sqltypes.TEXT
|
||||
TIME = sqltypes.TIME
|
||||
TIMESTAMP = sqltypes.TIMESTAMP
|
||||
Text = sqltypes.Text
|
||||
Time = sqltypes.Time
|
||||
Unicode = sqltypes.Unicode
|
||||
UnicodeText = sqltypes.UnicodeText
|
||||
VARBINARY = sqltypes.VARBINARY
|
||||
VARCHAR = sqltypes.VARCHAR
|
||||
133
third_party/2and3/sqlalchemy/util/__init__.pyi
vendored
133
third_party/2and3/sqlalchemy/util/__init__.pyi
vendored
@@ -1,133 +0,0 @@
|
||||
# Stubs for sqlalchemy.util (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from . import compat
|
||||
from . import _collections
|
||||
from . import langhelpers
|
||||
from . import deprecations
|
||||
|
||||
callable = compat.callable
|
||||
cmp = compat.cmp
|
||||
reduce = compat.reduce
|
||||
threading = compat.threading
|
||||
py3k = compat.py3k
|
||||
py33 = compat.py33
|
||||
py2k = compat.py2k
|
||||
jython = compat.jython
|
||||
pypy = compat.pypy
|
||||
cpython = compat.cpython
|
||||
win32 = compat.win32
|
||||
pickle = compat.pickle
|
||||
dottedgetter = compat.dottedgetter
|
||||
parse_qsl = compat.parse_qsl
|
||||
namedtuple = compat.namedtuple
|
||||
next = compat.next
|
||||
reraise = compat.reraise
|
||||
raise_from_cause = compat.raise_from_cause
|
||||
text_type = compat.text_type
|
||||
safe_kwarg = compat.safe_kwarg
|
||||
string_types = compat.string_types
|
||||
int_types = compat.int_types
|
||||
binary_type = compat.binary_type
|
||||
nested = compat.nested
|
||||
quote_plus = compat.quote_plus
|
||||
with_metaclass = compat.with_metaclass
|
||||
print_ = compat.print_
|
||||
itertools_filterfalse = compat.itertools_filterfalse
|
||||
u = compat.u
|
||||
ue = compat.ue
|
||||
b = compat.b
|
||||
unquote_plus = compat.unquote_plus
|
||||
unquote = compat.unquote
|
||||
b64decode = compat.b64decode
|
||||
b64encode = compat.b64encode
|
||||
byte_buffer = compat.byte_buffer
|
||||
itertools_filter = compat.itertools_filter
|
||||
iterbytes = compat.iterbytes
|
||||
StringIO = compat.StringIO
|
||||
inspect_getargspec = compat.inspect_getargspec
|
||||
zip_longest = compat.zip_longest
|
||||
KeyedTuple = _collections.KeyedTuple
|
||||
ImmutableContainer = _collections.ImmutableContainer
|
||||
immutabledict = _collections.immutabledict
|
||||
Properties = _collections.Properties
|
||||
OrderedProperties = _collections.OrderedProperties
|
||||
ImmutableProperties = _collections.ImmutableProperties
|
||||
OrderedDict = _collections.OrderedDict
|
||||
OrderedSet = _collections.OrderedSet
|
||||
IdentitySet = _collections.IdentitySet
|
||||
OrderedIdentitySet = _collections.OrderedIdentitySet
|
||||
column_set = _collections.column_set
|
||||
column_dict = _collections.column_dict
|
||||
ordered_column_set = _collections.ordered_column_set
|
||||
populate_column_dict = _collections.populate_column_dict
|
||||
unique_list = _collections.unique_list
|
||||
UniqueAppender = _collections.UniqueAppender
|
||||
PopulateDict = _collections.PopulateDict
|
||||
EMPTY_SET = _collections.EMPTY_SET
|
||||
to_list = _collections.to_list
|
||||
to_set = _collections.to_set
|
||||
to_column_set = _collections.to_column_set
|
||||
update_copy = _collections.update_copy
|
||||
flatten_iterator = _collections.flatten_iterator
|
||||
has_intersection = _collections.has_intersection
|
||||
LRUCache = _collections.LRUCache
|
||||
ScopedRegistry = _collections.ScopedRegistry
|
||||
ThreadLocalRegistry = _collections.ThreadLocalRegistry
|
||||
WeakSequence = _collections.WeakSequence
|
||||
coerce_generator_arg = _collections.coerce_generator_arg
|
||||
lightweight_named_tuple = _collections.lightweight_named_tuple
|
||||
iterate_attributes = langhelpers.iterate_attributes
|
||||
class_hierarchy = langhelpers.class_hierarchy
|
||||
portable_instancemethod = langhelpers.portable_instancemethod
|
||||
unbound_method_to_callable = langhelpers.unbound_method_to_callable
|
||||
getargspec_init = langhelpers.getargspec_init
|
||||
format_argspec_init = langhelpers.format_argspec_init
|
||||
format_argspec_plus = langhelpers.format_argspec_plus
|
||||
get_func_kwargs = langhelpers.get_func_kwargs
|
||||
get_cls_kwargs = langhelpers.get_cls_kwargs
|
||||
decorator = langhelpers.decorator
|
||||
as_interface = langhelpers.as_interface
|
||||
memoized_property = langhelpers.memoized_property
|
||||
memoized_instancemethod = langhelpers.memoized_instancemethod
|
||||
md5_hex = langhelpers.md5_hex
|
||||
group_expirable_memoized_property = langhelpers.group_expirable_memoized_property
|
||||
dependencies = langhelpers.dependencies
|
||||
decode_slice = langhelpers.decode_slice
|
||||
monkeypatch_proxied_specials = langhelpers.monkeypatch_proxied_specials
|
||||
asbool = langhelpers.asbool
|
||||
bool_or_str = langhelpers.bool_or_str
|
||||
coerce_kw_type = langhelpers.coerce_kw_type
|
||||
duck_type_collection = langhelpers.duck_type_collection
|
||||
assert_arg_type = langhelpers.assert_arg_type
|
||||
symbol = langhelpers.symbol
|
||||
dictlike_iteritems = langhelpers.dictlike_iteritems
|
||||
classproperty = langhelpers.classproperty
|
||||
set_creation_order = langhelpers.set_creation_order
|
||||
warn_exception = langhelpers.warn_exception
|
||||
warn = langhelpers.warn
|
||||
NoneType = langhelpers.NoneType
|
||||
constructor_copy = langhelpers.constructor_copy
|
||||
methods_equivalent = langhelpers.methods_equivalent
|
||||
chop_traceback = langhelpers.chop_traceback
|
||||
asint = langhelpers.asint
|
||||
generic_repr = langhelpers.generic_repr
|
||||
counter = langhelpers.counter
|
||||
PluginLoader = langhelpers.PluginLoader
|
||||
hybridproperty = langhelpers.hybridproperty
|
||||
hybridmethod = langhelpers.hybridmethod
|
||||
safe_reraise = langhelpers.safe_reraise
|
||||
get_callable_argspec = langhelpers.get_callable_argspec
|
||||
only_once = langhelpers.only_once
|
||||
attrsetter = langhelpers.attrsetter
|
||||
ellipses_string = langhelpers.ellipses_string
|
||||
warn_limited = langhelpers.warn_limited
|
||||
map_bits = langhelpers.map_bits
|
||||
MemoizedSlots = langhelpers.MemoizedSlots
|
||||
EnsureKWArgType = langhelpers.EnsureKWArgType
|
||||
warn_deprecated = deprecations.warn_deprecated
|
||||
warn_pending_deprecation = deprecations.warn_pending_deprecation
|
||||
deprecated = deprecations.deprecated
|
||||
pending_deprecation = deprecations.pending_deprecation
|
||||
inject_docstring_text = deprecations.inject_docstring_text
|
||||
214
third_party/2and3/sqlalchemy/util/_collections.pyi
vendored
214
third_party/2and3/sqlalchemy/util/_collections.pyi
vendored
@@ -1,214 +0,0 @@
|
||||
# Stubs for sqlalchemy.util._collections (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from . import compat
|
||||
|
||||
threading = compat.threading
|
||||
itertools_filterfalse = compat.itertools_filterfalse
|
||||
string_types = compat.string_types
|
||||
|
||||
EMPTY_SET = ... # type: Any
|
||||
|
||||
class AbstractKeyedTuple(tuple):
|
||||
def keys(self): ...
|
||||
|
||||
class KeyedTuple(AbstractKeyedTuple):
|
||||
def __new__(cls, vals, labels=...): ...
|
||||
def __setattr__(self, key, value): ...
|
||||
|
||||
class _LW(AbstractKeyedTuple):
|
||||
def __new__(cls, vals): ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class ImmutableContainer:
|
||||
__delitem__ = ... # type: Any
|
||||
|
||||
class immutabledict(ImmutableContainer, dict):
|
||||
clear = ... # type: Any
|
||||
def __new__(cls, *args): ...
|
||||
def __init__(self, *args) -> None: ...
|
||||
def __reduce__(self): ...
|
||||
def union(self, d): ...
|
||||
|
||||
class Properties:
|
||||
def __init__(self, data) -> None: ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __add__(self, other): ...
|
||||
def __setitem__(self, key, object): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
def __setattr__(self, key, obj): ...
|
||||
def __getattr__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def as_immutable(self): ...
|
||||
def update(self, value): ...
|
||||
def get(self, key, default=...): ...
|
||||
def keys(self): ...
|
||||
def values(self): ...
|
||||
def items(self): ...
|
||||
def has_key(self, key): ...
|
||||
def clear(self): ...
|
||||
|
||||
class OrderedProperties(Properties):
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class ImmutableProperties(ImmutableContainer, Properties): ...
|
||||
|
||||
class OrderedDict(dict):
|
||||
def __reduce__(self): ...
|
||||
def __init__(self, ____sequence=..., **kwargs) -> None: ...
|
||||
def clear(self): ...
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
def sort(self, *arg, **kw): ...
|
||||
def update(self, ____sequence=..., **kwargs): ...
|
||||
def setdefault(self, key, value): ...
|
||||
def __iter__(self): ...
|
||||
def keys(self): ...
|
||||
def values(self): ...
|
||||
def items(self): ...
|
||||
def itervalues(self): ...
|
||||
def iterkeys(self): ...
|
||||
def iteritems(self): ...
|
||||
def __setitem__(self, key, object): ...
|
||||
def __delitem__(self, key): ...
|
||||
def pop(self, key, *default): ...
|
||||
def popitem(self): ...
|
||||
|
||||
class OrderedSet(set):
|
||||
def __init__(self, d=...) -> None: ...
|
||||
def add(self, element): ...
|
||||
def remove(self, element): ...
|
||||
def insert(self, pos, element): ...
|
||||
def discard(self, element): ...
|
||||
def clear(self): ...
|
||||
def __getitem__(self, key): ...
|
||||
def __iter__(self): ...
|
||||
def __add__(self, other): ...
|
||||
def update(self, iterable): ...
|
||||
__ior__ = ... # type: Any
|
||||
def union(self, other): ...
|
||||
__or__ = ... # type: Any
|
||||
def intersection(self, other): ...
|
||||
__and__ = ... # type: Any
|
||||
def symmetric_difference(self, other): ...
|
||||
__xor__ = ... # type: Any
|
||||
def difference(self, other): ...
|
||||
__sub__ = ... # type: Any
|
||||
def intersection_update(self, other): ...
|
||||
__iand__ = ... # type: Any
|
||||
def symmetric_difference_update(self, other): ...
|
||||
__ixor__ = ... # type: Any
|
||||
def difference_update(self, other): ...
|
||||
__isub__ = ... # type: Any
|
||||
|
||||
class IdentitySet:
|
||||
def __init__(self, iterable=...) -> None: ...
|
||||
def add(self, value): ...
|
||||
def __contains__(self, value): ...
|
||||
def remove(self, value): ...
|
||||
def discard(self, value): ...
|
||||
def pop(self): ...
|
||||
def clear(self): ...
|
||||
def __cmp__(self, other): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def issubset(self, iterable): ...
|
||||
def __le__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
def issuperset(self, iterable): ...
|
||||
def __ge__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def union(self, iterable): ...
|
||||
def __or__(self, other): ...
|
||||
def update(self, iterable): ...
|
||||
def __ior__(self, other): ...
|
||||
def difference(self, iterable): ...
|
||||
def __sub__(self, other): ...
|
||||
def difference_update(self, iterable): ...
|
||||
def __isub__(self, other): ...
|
||||
def intersection(self, iterable): ...
|
||||
def __and__(self, other): ...
|
||||
def intersection_update(self, iterable): ...
|
||||
def __iand__(self, other): ...
|
||||
def symmetric_difference(self, iterable): ...
|
||||
def __xor__(self, other): ...
|
||||
def symmetric_difference_update(self, iterable): ...
|
||||
def __ixor__(self, other): ...
|
||||
def copy(self): ...
|
||||
__copy__ = ... # type: Any
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __hash__(self): ...
|
||||
|
||||
class WeakSequence:
|
||||
def __init__(self, __elements=...) -> None: ...
|
||||
def append(self, item): ...
|
||||
def __len__(self): ...
|
||||
def __iter__(self): ...
|
||||
def __getitem__(self, index): ...
|
||||
|
||||
class OrderedIdentitySet(IdentitySet):
|
||||
class _working_set(OrderedSet):
|
||||
__sa_hash_exempt__ = ... # type: Any
|
||||
def __init__(self, iterable=...) -> None: ...
|
||||
|
||||
class PopulateDict(dict):
|
||||
creator = ... # type: Any
|
||||
def __init__(self, creator) -> None: ...
|
||||
def __missing__(self, key): ...
|
||||
|
||||
column_set = set
|
||||
column_dict = dict
|
||||
ordered_column_set = OrderedSet
|
||||
populate_column_dict = PopulateDict
|
||||
|
||||
def unique_list(seq, hashfunc=...): ...
|
||||
|
||||
class UniqueAppender:
|
||||
data = ... # type: Any
|
||||
def __init__(self, data, via=...) -> None: ...
|
||||
def append(self, item): ...
|
||||
def __iter__(self): ...
|
||||
|
||||
def coerce_generator_arg(arg): ...
|
||||
def to_list(x, default=...): ...
|
||||
def has_intersection(set_, iterable): ...
|
||||
def to_set(x): ...
|
||||
def to_column_set(x): ...
|
||||
def update_copy(d, _new=..., **kw): ...
|
||||
def flatten_iterator(x): ...
|
||||
|
||||
class LRUCache(dict):
|
||||
capacity = ... # type: Any
|
||||
threshold = ... # type: Any
|
||||
def __init__(self, capacity=..., threshold=...) -> None: ...
|
||||
def get(self, key, default=...): ...
|
||||
def __getitem__(self, key): ...
|
||||
def values(self): ...
|
||||
def setdefault(self, key, value): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
|
||||
def lightweight_named_tuple(name, fields): ...
|
||||
|
||||
class ScopedRegistry:
|
||||
createfunc = ... # type: Any
|
||||
scopefunc = ... # type: Any
|
||||
registry = ... # type: Any
|
||||
def __init__(self, createfunc, scopefunc) -> None: ...
|
||||
def __call__(self): ...
|
||||
def has(self): ...
|
||||
def set(self, obj): ...
|
||||
def clear(self): ...
|
||||
|
||||
class ThreadLocalRegistry(ScopedRegistry):
|
||||
createfunc = ... # type: Any
|
||||
registry = ... # type: Any
|
||||
def __init__(self, createfunc) -> None: ...
|
||||
def __call__(self): ...
|
||||
def has(self): ...
|
||||
def set(self, obj): ...
|
||||
def clear(self): ...
|
||||
67
third_party/2and3/sqlalchemy/util/compat.pyi
vendored
67
third_party/2and3/sqlalchemy/util/compat.pyi
vendored
@@ -1,67 +0,0 @@
|
||||
# Stubs for sqlalchemy.util.compat (Python 2)
|
||||
|
||||
from typing import Any, Text
|
||||
from collections import namedtuple
|
||||
|
||||
import threading
|
||||
import pickle
|
||||
from six.moves.urllib.parse import (quote_plus, unquote_plus,
|
||||
parse_qsl, quote, unquote)
|
||||
# import configparser
|
||||
from six.moves import StringIO
|
||||
|
||||
from io import BytesIO as byte_buffer
|
||||
|
||||
from operator import attrgetter as dottedgetter
|
||||
|
||||
from six.moves import zip_longest
|
||||
|
||||
py33 = ... # type: Any
|
||||
py32 = ... # type: Any
|
||||
py3k = ... # type: Any
|
||||
py2k = ... # type: Any
|
||||
py265 = ... # type: Any
|
||||
jython = ... # type: Any
|
||||
pypy = ... # type: Any
|
||||
win32 = ... # type: Any
|
||||
cpython = ... # type: Any
|
||||
next = ... # type: Any
|
||||
safe_kwarg = ... # type: Any
|
||||
|
||||
ArgSpec = namedtuple('ArgSpec', ['args', 'varargs', 'keywords', 'defaults'])
|
||||
|
||||
def inspect_getargspec(func): ...
|
||||
|
||||
string_types = ... # type: Any
|
||||
binary_type = ... # type: Any
|
||||
text_type = Text
|
||||
int_types = ... # type: Any
|
||||
|
||||
def callable(fn): ...
|
||||
def cmp(a, b): ...
|
||||
|
||||
itertools_filterfalse = ... # type: Any
|
||||
itertools_filter = ... # type: Any
|
||||
itertools_imap = ... # type: Any
|
||||
|
||||
def b64encode(x): ...
|
||||
def b64decode(x): ...
|
||||
|
||||
def iterbytes(buf): ...
|
||||
def u(s): ...
|
||||
def ue(s): ...
|
||||
def b(s): ...
|
||||
def import_(*args): ...
|
||||
|
||||
reduce = ... # type: Any
|
||||
|
||||
def print_(*args, **kwargs): ...
|
||||
|
||||
time_func = ... # type: Any
|
||||
|
||||
def reraise(tp, value, tb=..., cause=...): ...
|
||||
def raise_from_cause(exception, exc_info=...): ...
|
||||
|
||||
def exec_(func_text, globals_, lcl=...): ...
|
||||
def with_metaclass(meta, *bases): ...
|
||||
def nested(*managers): ...
|
||||
@@ -1,13 +0,0 @@
|
||||
# Stubs for sqlalchemy.util.deprecations (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from . import langhelpers
|
||||
|
||||
decorator = langhelpers.decorator
|
||||
|
||||
def warn_deprecated(msg, stacklevel=...): ...
|
||||
def warn_pending_deprecation(msg, stacklevel=...): ...
|
||||
def deprecated(version, message=..., add_deprecation_to_docstring=...): ...
|
||||
def pending_deprecation(version, message=..., add_deprecation_to_docstring=...): ...
|
||||
def inject_docstring_text(doctext, injecttext, pos): ...
|
||||
134
third_party/2and3/sqlalchemy/util/langhelpers.pyi
vendored
134
third_party/2and3/sqlalchemy/util/langhelpers.pyi
vendored
@@ -1,134 +0,0 @@
|
||||
# Stubs for sqlalchemy.util.langhelpers (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from . import compat
|
||||
|
||||
def md5_hex(x): ...
|
||||
|
||||
class safe_reraise:
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, type_, value, traceback): ...
|
||||
|
||||
def decode_slice(slc): ...
|
||||
def map_bits(fn, n): ...
|
||||
def decorator(target): ...
|
||||
def public_factory(target, location): ...
|
||||
|
||||
class PluginLoader:
|
||||
group = ... # type: Any
|
||||
impls = ... # type: Any
|
||||
auto_fn = ... # type: Any
|
||||
def __init__(self, group, auto_fn=...) -> None: ...
|
||||
def load(self, name): ...
|
||||
def register(self, name, modulepath, objname): ...
|
||||
|
||||
def get_cls_kwargs(cls, _set=...): ...
|
||||
def inspect_func_args(fn): ...
|
||||
def get_func_kwargs(func): ...
|
||||
def get_callable_argspec(fn, no_self=..., _is_init=...): ...
|
||||
def format_argspec_plus(fn, grouped=...): ...
|
||||
def format_argspec_init(method, grouped=...): ...
|
||||
def getargspec_init(method): ...
|
||||
def unbound_method_to_callable(func_or_cls): ...
|
||||
def generic_repr(obj, additional_kw=..., to_inspect=..., omit_kwarg=...): ...
|
||||
|
||||
class portable_instancemethod:
|
||||
target = ... # type: Any
|
||||
name = ... # type: Any
|
||||
def __init__(self, meth) -> None: ...
|
||||
def __call__(self, *arg, **kw): ...
|
||||
|
||||
def class_hierarchy(cls): ...
|
||||
def iterate_attributes(cls): ...
|
||||
def monkeypatch_proxied_specials(into_cls, from_cls, skip=..., only=..., name=..., from_instance=...): ...
|
||||
def methods_equivalent(meth1, meth2): ...
|
||||
def as_interface(obj, cls=..., methods=..., required=...): ...
|
||||
|
||||
class memoized_property:
|
||||
fget = ... # type: Any
|
||||
__name__ = ... # type: Any
|
||||
def __init__(self, fget, doc=...) -> None: ...
|
||||
def __get__(self, obj, cls): ...
|
||||
@classmethod
|
||||
def reset(cls, obj, name): ...
|
||||
|
||||
def memoized_instancemethod(fn): ...
|
||||
|
||||
class group_expirable_memoized_property:
|
||||
attributes = ... # type: Any
|
||||
def __init__(self, attributes=...) -> None: ...
|
||||
def expire_instance(self, instance): ...
|
||||
def __call__(self, fn): ...
|
||||
def method(self, fn): ...
|
||||
|
||||
class MemoizedSlots:
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
def dependency_for(modulename): ...
|
||||
|
||||
class dependencies:
|
||||
import_deps = ... # type: Any
|
||||
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) -> None: ...
|
||||
def module(self): ...
|
||||
def __getattr__(self, key): ...
|
||||
|
||||
def asbool(obj): ...
|
||||
def bool_or_str(*text): ...
|
||||
def asint(value): ...
|
||||
def coerce_kw_type(kw, key, type_, flexi_bool=...): ...
|
||||
def constructor_copy(obj, cls, *args, **kw): ...
|
||||
def counter(): ...
|
||||
def duck_type_collection(specimen, default=...): ...
|
||||
def assert_arg_type(arg, argtype, name): ...
|
||||
def dictlike_iteritems(dictlike): ...
|
||||
|
||||
class classproperty:
|
||||
def __init__(self, fget, *arg, **kw) -> None: ...
|
||||
def __get__(desc, self, cls): ...
|
||||
|
||||
class hybridproperty:
|
||||
func = ... # type: Any
|
||||
def __init__(self, func) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
|
||||
class hybridmethod:
|
||||
func = ... # type: Any
|
||||
def __init__(self, func) -> None: ...
|
||||
def __get__(self, instance, owner): ...
|
||||
|
||||
class _symbol(int):
|
||||
def __new__(self, name, doc=..., canonical=...): ...
|
||||
def __reduce__(self): ...
|
||||
|
||||
class symbol:
|
||||
symbols = ... # type: Any
|
||||
def __new__(cls, name, doc=..., canonical=...): ...
|
||||
|
||||
def set_creation_order(instance): ...
|
||||
def warn_exception(func, *args, **kwargs): ...
|
||||
def ellipses_string(value, len_=...): ...
|
||||
|
||||
class _hash_limit_string(compat.text_type):
|
||||
def __new__(cls, value, num, args): ...
|
||||
def __hash__(self): ...
|
||||
def __eq__(self, other): ...
|
||||
|
||||
def warn(msg): ...
|
||||
def warn_limited(msg, args): ...
|
||||
def only_once(fn): ...
|
||||
def chop_traceback(tb, exclude_prefix=..., exclude_suffix=...): ...
|
||||
|
||||
NoneType = ... # type: Any
|
||||
|
||||
def attrsetter(attrname): ...
|
||||
|
||||
class EnsureKWArgType(type):
|
||||
def __init__(cls, clsname, bases, clsdict) -> None: ...
|
||||
Reference in New Issue
Block a user