mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -30,43 +30,43 @@ def register_adapters_and_converters(): ...
|
||||
|
||||
# The remaining definitions are imported from _sqlite3.
|
||||
|
||||
PARSE_COLNAMES = ... # type: int
|
||||
PARSE_DECLTYPES = ... # type: int
|
||||
SQLITE_ALTER_TABLE = ... # type: int
|
||||
SQLITE_ANALYZE = ... # type: int
|
||||
SQLITE_ATTACH = ... # type: int
|
||||
SQLITE_CREATE_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_INDEX = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TABLE = ... # type: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_TEMP_VIEW = ... # type: int
|
||||
SQLITE_CREATE_TRIGGER = ... # type: int
|
||||
SQLITE_CREATE_VIEW = ... # type: int
|
||||
SQLITE_DELETE = ... # type: int
|
||||
SQLITE_DENY = ... # type: int
|
||||
SQLITE_DETACH = ... # type: int
|
||||
SQLITE_DROP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_INDEX = ... # type: int
|
||||
SQLITE_DROP_TEMP_TABLE = ... # type: int
|
||||
SQLITE_DROP_TEMP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_TEMP_VIEW = ... # type: int
|
||||
SQLITE_DROP_TRIGGER = ... # type: int
|
||||
SQLITE_DROP_VIEW = ... # type: int
|
||||
SQLITE_IGNORE = ... # type: int
|
||||
SQLITE_INSERT = ... # type: int
|
||||
SQLITE_OK = ... # type: int
|
||||
SQLITE_PRAGMA = ... # type: int
|
||||
SQLITE_READ = ... # type: int
|
||||
SQLITE_REINDEX = ... # type: int
|
||||
SQLITE_SELECT = ... # type: int
|
||||
SQLITE_TRANSACTION = ... # type: int
|
||||
SQLITE_UPDATE = ... # type: int
|
||||
adapters = ... # type: Any
|
||||
converters = ... # type: Any
|
||||
sqlite_version = ... # type: str
|
||||
version = ... # type: str
|
||||
PARSE_COLNAMES: int
|
||||
PARSE_DECLTYPES: int
|
||||
SQLITE_ALTER_TABLE: int
|
||||
SQLITE_ANALYZE: int
|
||||
SQLITE_ATTACH: int
|
||||
SQLITE_CREATE_INDEX: int
|
||||
SQLITE_CREATE_TABLE: int
|
||||
SQLITE_CREATE_TEMP_INDEX: int
|
||||
SQLITE_CREATE_TEMP_TABLE: int
|
||||
SQLITE_CREATE_TEMP_TRIGGER: int
|
||||
SQLITE_CREATE_TEMP_VIEW: int
|
||||
SQLITE_CREATE_TRIGGER: int
|
||||
SQLITE_CREATE_VIEW: int
|
||||
SQLITE_DELETE: int
|
||||
SQLITE_DENY: int
|
||||
SQLITE_DETACH: int
|
||||
SQLITE_DROP_INDEX: int
|
||||
SQLITE_DROP_TABLE: int
|
||||
SQLITE_DROP_TEMP_INDEX: int
|
||||
SQLITE_DROP_TEMP_TABLE: int
|
||||
SQLITE_DROP_TEMP_TRIGGER: int
|
||||
SQLITE_DROP_TEMP_VIEW: int
|
||||
SQLITE_DROP_TRIGGER: int
|
||||
SQLITE_DROP_VIEW: int
|
||||
SQLITE_IGNORE: int
|
||||
SQLITE_INSERT: int
|
||||
SQLITE_OK: int
|
||||
SQLITE_PRAGMA: int
|
||||
SQLITE_READ: int
|
||||
SQLITE_REINDEX: int
|
||||
SQLITE_SELECT: int
|
||||
SQLITE_TRANSACTION: int
|
||||
SQLITE_UPDATE: int
|
||||
adapters: Any
|
||||
converters: Any
|
||||
sqlite_version: str
|
||||
version: str
|
||||
|
||||
# TODO: adapt needs to get probed
|
||||
def adapt(obj, protocol, alternate): ...
|
||||
@@ -108,21 +108,21 @@ class Cache(object):
|
||||
def get(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class Connection(object):
|
||||
DataError = ... # type: Any
|
||||
DatabaseError = ... # type: Any
|
||||
Error = ... # type: Any
|
||||
IntegrityError = ... # type: Any
|
||||
InterfaceError = ... # type: Any
|
||||
InternalError = ... # type: Any
|
||||
NotSupportedError = ... # type: Any
|
||||
OperationalError = ... # type: Any
|
||||
ProgrammingError = ... # type: Any
|
||||
Warning = ... # type: Any
|
||||
in_transaction = ... # type: Any
|
||||
isolation_level = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
text_factory = ... # type: Any
|
||||
total_changes = ... # type: Any
|
||||
DataError: Any
|
||||
DatabaseError: Any
|
||||
Error: Any
|
||||
IntegrityError: Any
|
||||
InterfaceError: Any
|
||||
InternalError: Any
|
||||
NotSupportedError: Any
|
||||
OperationalError: Any
|
||||
ProgrammingError: Any
|
||||
Warning: Any
|
||||
in_transaction: Any
|
||||
isolation_level: Any
|
||||
row_factory: Any
|
||||
text_factory: Any
|
||||
total_changes: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def close(self) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
@@ -157,12 +157,12 @@ class Connection(object):
|
||||
def __exit__(self, *args, **kwargs): ...
|
||||
|
||||
class Cursor(Iterator[Any]):
|
||||
arraysize = ... # type: Any
|
||||
connection = ... # type: Any
|
||||
description = ... # type: Any
|
||||
lastrowid = ... # type: Any
|
||||
row_factory = ... # type: Any
|
||||
rowcount = ... # type: Any
|
||||
arraysize: Any
|
||||
connection: Any
|
||||
description: Any
|
||||
lastrowid: Any
|
||||
row_factory: Any
|
||||
rowcount: Any
|
||||
# TODO: Cursor class accepts exactly 1 argument
|
||||
# required type is sqlite3.Connection (which is imported as _Connection)
|
||||
# however, the name of the __init__ variable is unknown
|
||||
@@ -200,7 +200,7 @@ class NotSupportedError(DatabaseError): ...
|
||||
class OperationalError(DatabaseError): ...
|
||||
|
||||
class OptimizedUnicode(object):
|
||||
maketrans = ... # type: Any
|
||||
maketrans: Any
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
def capitalize(self, *args, **kwargs): ...
|
||||
def casefold(self, *args, **kwargs): ...
|
||||
|
||||
Reference in New Issue
Block a user