Annotate known magic-method return types (#9131)

This commit is contained in:
Nikita Sobolev
2022-11-08 21:28:42 +03:00
committed by GitHub
parent c0e9038f0d
commit 62a6c3d616
87 changed files with 172 additions and 172 deletions

View File

@@ -213,7 +213,7 @@ class CDATASection(Text):
class ReadOnlySequentialNamedNodeMap:
def __init__(self, seq=...) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def getNamedItem(self, name): ...
def getNamedItemNS(self, namespaceURI: str, localName): ...
def __getitem__(self, name_or_tuple): ...

View File

@@ -53,7 +53,7 @@ class AttributesImpl:
def getQNameByName(self, name): ...
def getNames(self): ...
def getQNames(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __getitem__(self, name): ...
def keys(self): ...
def __contains__(self, name): ...

View File

@@ -4,7 +4,7 @@ class _Operand:
im: Any
def __init__(self, im) -> None: ...
def apply(self, op, im1, im2: Any | None = ..., mode: Any | None = ...): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __abs__(self): ...
def __pos__(self): ...
def __neg__(self): ...

View File

@@ -3,12 +3,12 @@ from typing import Any
class HDC:
dc: Any
def __init__(self, dc) -> None: ...
def __int__(self): ...
def __int__(self) -> int: ...
class HWND:
wnd: Any
def __init__(self, wnd) -> None: ...
def __int__(self): ...
def __int__(self) -> int: ...
class Dib:
image: Any

View File

@@ -12,10 +12,10 @@ class PdfFormatError(RuntimeError): ...
def check_format_condition(condition, error_message) -> None: ...
class IndirectReference:
def __bytes__(self): ...
def __bytes__(self) -> bytes: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
class IndirectObjectDef(IndirectReference): ...
@@ -29,7 +29,7 @@ class XrefTable:
def __getitem__(self, key): ...
def __delitem__(self, key) -> None: ...
def __contains__(self, key): ...
def __len__(self): ...
def __len__(self) -> int: ...
def keys(self): ...
def write(self, f): ...
@@ -38,14 +38,14 @@ class PdfName:
def __init__(self, name) -> None: ...
def name_as_str(self): ...
def __eq__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
@classmethod
def from_pdf_stream(cls, data): ...
allowed_chars: Any
def __bytes__(self): ...
def __bytes__(self) -> bytes: ...
class PdfArray(list[Any]):
def __bytes__(self): ...
def __bytes__(self) -> bytes: ...
class PdfDict(collections.UserDict[bytes, Any]):
def __setattr__(self, key, value) -> None: ...
@@ -55,7 +55,7 @@ class PdfDict(collections.UserDict[bytes, Any]):
class PdfBinary:
data: Any
def __init__(self, data) -> None: ...
def __bytes__(self): ...
def __bytes__(self) -> bytes: ...
class PdfStream:
dictionary: Any

View File

@@ -10,7 +10,7 @@ class PyAccess:
image32: Any
image: Any
def __init__(self, img, readonly: bool = ...) -> None: ...
def __setitem__(self, xy, color): ...
def __setitem__(self, xy, color) -> None: ...
def __getitem__(self, xy): ...
putpixel: Any
getpixel: Any

View File

@@ -59,7 +59,7 @@ class IFDRational(Rational):
@property
def denominator(a): ...
def limit_rational(self, max_denominator): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
__add__: Any
__radd__: Any
@@ -131,7 +131,7 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2):
def from_v2(cls, original): ...
def to_v2(self): ...
def __contains__(self, tag): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __setitem__(self, tag, value) -> None: ...
def __getitem__(self, tag): ...

View File

@@ -4,8 +4,8 @@ class BaseRow:
def __init__(self, parent, processors, keymap, key_style, data) -> None: ...
def __reduce__(self): ...
def __iter__(self): ...
def __len__(self): ...
def __hash__(self): ...
def __len__(self) -> int: ...
def __hash__(self) -> int: ...
__getitem__: Any
def safe_rowproxy_reconstructor(__cls, __state): ...

View File

@@ -11,7 +11,7 @@ class ResultMetaData:
class RMKeyView(KeysView[Any]):
def __init__(self, parent) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __contains__(self, item): ...
def __eq__(self, other): ...

View File

@@ -41,7 +41,7 @@ RowProxy = Row
class ROMappingView(KeysView[Any], ValuesView[Any], ItemsView[Any, Any]):
def __init__(self, mapping, items) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __contains__(self, item): ...
def __eq__(self, other): ...
@@ -50,7 +50,7 @@ class ROMappingView(KeysView[Any], ValuesView[Any], ItemsView[Any, Any]):
class RowMapping(BaseRow, Mapping[Any, Any]):
__getitem__: Any
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __contains__(self, key): ...
def items(self): ...
def keys(self): ...

View File

@@ -43,18 +43,18 @@ class _EmptyListener(_InstanceLevelDispatch):
remove: Any
clear: Any
def __call__(self, *args, **kw) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
class _CompoundListener(_InstanceLevelDispatch):
def exec_once(self, *args, **kw) -> None: ...
def exec_once_unless_exception(self, *args, **kw) -> None: ...
def __call__(self, *args, **kw) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
class _ListenerCollection(_CompoundListener):

View File

@@ -32,8 +32,8 @@ class AssociationProxy(interfaces.InspectionAttrInfo):
cascade_scalar_deletes: bool = ...,
) -> None: ...
def __get__(self, obj, class_): ...
def __set__(self, obj, values): ...
def __delete__(self, obj): ...
def __set__(self, obj, values) -> None: ...
def __delete__(self, obj) -> None: ...
def for_class(self, class_, obj: Any | None = ...): ...
class AssociationProxyInstance:
@@ -95,8 +95,8 @@ class _AssociationCollection:
def __init__(self, lazy_collection, creator, getter, setter, parent) -> None: ...
@property
def col(self): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
class _AssociationList(_AssociationCollection):
@@ -132,7 +132,7 @@ class _AssociationList(_AssociationCollection):
def __imul__(self, n): ...
def index(self, item, *args): ...
def copy(self): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
class _AssociationDict(_AssociationCollection):
def __getitem__(self, key): ...
@@ -158,11 +158,11 @@ class _AssociationDict(_AssociationCollection):
def popitem(self): ...
def update(self, *a, **kw) -> None: ...
def copy(self): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
class _AssociationSet(_AssociationCollection):
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __contains__(self, value): ...
def __iter__(self): ...
@@ -196,4 +196,4 @@ class _AssociationSet(_AssociationCollection):
def __le__(self, other): ...
def __gt__(self, other): ...
def __ge__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...

View File

@@ -11,6 +11,6 @@ class StartableContext(abc.ABC, metaclass=abc.ABCMeta):
async def __aexit__(self, type_, value, traceback): ...
class ProxyComparable(ReversibleProxy):
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...

View File

@@ -207,7 +207,7 @@ class CollectionAttributeImpl(AttributeImpl):
def backref_listeners(attribute, key, uselist): ...
class History:
def __bool__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def empty(self): ...
def sum(self): ...

View File

@@ -72,8 +72,8 @@ class CollectionAdapter:
def clear_with_event(self, initiator: Any | None = ...) -> None: ...
def clear_without_event(self) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def fire_append_wo_mutation_event(self, item, initiator: Any | None = ...): ...
def fire_append_event(self, item, initiator: Any | None = ...): ...

View File

@@ -49,8 +49,8 @@ class DynamicCollectionAdapter:
data: Any
def __init__(self, data) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
class AppenderMixin:

View File

@@ -11,7 +11,7 @@ class IdentityMap:
def popitem(self) -> None: ...
def pop(self, key, *args) -> None: ...
def setdefault(self, key, default: Any | None = ...) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def copy(self) -> None: ...
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...

View File

@@ -24,7 +24,7 @@ class ClassManager(HasMemoized, dict[Any, Any]):
local_attrs: Any
originals: Any
def __init__(self, class_) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ... # type: ignore[override]
def __eq__(self, other): ...
@property
def is_mapped(self): ...
@@ -57,7 +57,7 @@ class ClassManager(HasMemoized, dict[Any, Any]):
def teardown_instance(self, instance) -> None: ...
def has_state(self, instance): ...
def has_parent(self, state, key, optimistic: bool = ...): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
class _SerializeManager:

View File

@@ -15,8 +15,8 @@ class PathRegistry(HasCacheKey):
def set(self, attributes, key, value) -> None: ...
def setdefault(self, attributes, key, value) -> None: ...
def get(self, attributes, key, value: Any | None = ...): ...
def __len__(self): ...
def __hash__(self): ...
def __len__(self) -> int: ...
def __hash__(self) -> int: ...
@property
def length(self): ...
def pairs(self) -> None: ...
@@ -93,7 +93,7 @@ class AbstractEntityRegistry(PathRegistry):
def entity_path(self): ...
@property
def mapper(self): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __getitem__(self, entity): ...

View File

@@ -10,7 +10,7 @@ class Annotated:
__dict__: Any
def __init__(self, element, values) -> None: ...
def __reduce__(self): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
@property
def entity_namespace(self): ...

View File

@@ -32,12 +32,12 @@ class _DialectArgView(MutableMapping[Any, Any]):
def __getitem__(self, key): ...
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
class _DialectArgDict(MutableMapping[Any, Any]):
def __init__(self) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, key): ...
def __setitem__(self, key, value) -> None: ...
@@ -119,8 +119,8 @@ class ColumnCollection:
def keys(self): ...
def values(self): ...
def items(self): ...
def __bool__(self): ...
def __len__(self): ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, key): ...
def __getattr__(self, key): ...
@@ -157,4 +157,4 @@ class ColumnSet(util.ordered_column_set[ColumnElement[Any]]):
def extend(self, cols) -> None: ...
def __add__(self, other): ...
def __eq__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ... # type: ignore[override]

View File

@@ -168,7 +168,7 @@ class ClauseList(roles.InElementRole, roles.OrderByRole, roles.ColumnsClauseRole
clauses: Any
def __init__(self, *clauses, **kwargs) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def append(self, clause) -> None: ...
def self_group(self, against: Any | None = ...): ...

View File

@@ -106,7 +106,7 @@ class PyWrapper(ColumnOperators[_T], Generic[_T]):
def operate(self, op, *other, **kwargs): ...
def reverse_operate(self, op, other, **kwargs): ...
def __clause_element__(self): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __nonzero__(self): ...
def __getattribute__(self, key): ...
def __iter__(self): ...

View File

@@ -227,7 +227,7 @@ class ColumnCollectionConstraint(ColumnCollectionMixin, Constraint):
def copy(self, target_table: Any | None = ..., **kw): ...
def contains_column(self, col): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
class CheckConstraint(ColumnCollectionConstraint):
__visit_name__: str
@@ -318,7 +318,7 @@ class MetaData(SchemaItem):
naming_convention: Any | None = ...,
info: Any | None = ...,
) -> None: ...
def __contains__(self, table_or_key): ...
def __contains__(self, table_or_key) -> bool: ...
def is_bound(self): ...
bind: Any
def clear(self) -> None: ...

View File

@@ -175,7 +175,7 @@ class TableClause(roles.DMLTableRole, Immutable, FromClause):
class ForUpdateArg(ClauseElement):
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
nowait: Any
read: Any
skip_locked: Any

View File

@@ -22,7 +22,7 @@ class HasCacheKey:
class MemoizedHasCacheKey(HasCacheKey, HasMemoized): ...
class CacheKey:
def __hash__(self): ...
def __hash__(self) -> int: ...
def to_offline_string(self, statement_cache, statement, parameters): ...
def __eq__(self, other): ...

View File

@@ -6,4 +6,4 @@ class ComparableMixin:
def __eq__(self, other): ...
class ComparableEntity(ComparableMixin, BasicEntity):
def __hash__(self): ...
def __hash__(self) -> int: ...

View File

@@ -50,13 +50,13 @@ class BarWithoutCompare:
class NotComparable:
data: Any
def __init__(self, data) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
class BrokenComparable:
data: Any
def __init__(self, data) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...

View File

@@ -136,7 +136,7 @@ class IdentitySet:
__copy__: Any
def __len__(self): ...
def __iter__(self): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
class WeakSequence:
def __init__(self, __elements=...) -> None: ...

View File

@@ -16,7 +16,7 @@ class Alias:
class LocaleDataDict(MutableMapping[Any, Any]):
base: Any
def __init__(self, data, base: Any | None = ...) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, key): ...
def __setitem__(self, key, value) -> None: ...

View File

@@ -81,7 +81,7 @@ class Catalog:
@property
def plural_forms(self): ...
def __contains__(self, id): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __delitem__(self, id) -> None: ...
def __getitem__(self, id): ...

View File

@@ -23,7 +23,7 @@ class LazyProxy:
def __bool__(self) -> bool: ...
def __dir__(self): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __add__(self, other): ...
def __radd__(self, other): ...
def __mod__(self, other): ...

View File

@@ -38,7 +38,7 @@ class AttrList:
def __setitem__(self, name, value) -> None: ...
def items(self): ...
def keys(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __getitem__(self, name): ...
def __contains__(self, name): ...

View File

@@ -21,7 +21,7 @@ class BotoServerError(StandardError):
box_usage: Any
def __init__(self, status, reason, body: Any | None = ..., *args) -> None: ...
def __getattr__(self, name): ...
def __setattr__(self, name, value): ...
def __setattr__(self, name, value) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -9,4 +9,4 @@ class Errors:
@property
def deep_errors(self): ...
def for_object(self, key): ...
def __len__(self): ...
def __len__(self) -> int: ...

View File

@@ -17,4 +17,4 @@ class ValidationErrorCollection:
@property
def size(self): ...
def __getitem__(self, index): ...
def __len__(self): ...
def __len__(self) -> int: ...

View File

@@ -61,44 +61,44 @@ class Lib:
class _CDataBase:
__name__: ClassVar[str]
def __add__(self, other): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __call__(self, *args, **kwargs): ...
def __complex__(self): ...
def __delitem__(self, other): ...
def __complex__(self) -> complex: ...
def __delitem__(self, other) -> None: ...
def __dir__(self): ...
def __enter__(self): ...
def __eq__(self, other): ...
def __exit__(self, type, value, traceback): ...
def __float__(self): ...
def __float__(self) -> float: ...
def __ge__(self, other): ...
def __getitem__(self, index): ...
def __gt__(self, other): ...
def __hash__(self): ...
def __int__(self): ...
def __hash__(self) -> int: ...
def __int__(self) -> int: ...
def __iter__(self): ...
def __le__(self, other): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __lt__(self, other): ...
def __ne__(self, other): ...
def __radd__(self, other): ...
def __rsub__(self, other): ...
def __setitem__(self, index, object): ...
def __setitem__(self, index, object) -> None: ...
def __sub__(self, other): ...
@final
class buffer:
__hash__: ClassVar[None] # type: ignore[assignment]
def __init__(self, *args, **kwargs) -> None: ...
def __delitem__(self, other): ...
def __delitem__(self, other) -> None: ...
def __eq__(self, other): ...
def __ge__(self, other): ...
def __getitem__(self, index): ...
def __gt__(self, other): ...
def __le__(self, other): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __lt__(self, other): ...
def __ne__(self, other): ...
def __setitem__(self, index, object): ...
def __setitem__(self, index, object) -> None: ...
# These aliases are to work around pyright complaints.
# Pyright doesn't like it when a class object is defined as an alias

View File

@@ -18,11 +18,11 @@ class CTypesData:
def __le__(self, other): ...
def __gt__(self, other): ...
def __ge__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __repr__(self, c_name: str | None = ...): ...
class CTypesGenericPrimitive(CTypesData):
def __hash__(self): ...
def __hash__(self) -> int: ...
class CTypesGenericArray(CTypesData):
def __iter__(self): ...

View File

@@ -21,7 +21,7 @@ class BaseTypeByIdentity:
class BaseType(BaseTypeByIdentity):
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
class VoidType(BaseType):
c_name_with_marker: str

View File

@@ -19,4 +19,4 @@ class Cursor:
def urlsafe(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...

View File

@@ -4,7 +4,7 @@ UNDEFINED: Any
class Key:
def __new__(cls, *path_args, **kwargs): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __lt__(self, other): ...

View File

@@ -5,7 +5,7 @@ from ._base import Trie as ABCTrie
class Trie(ABCTrie):
def __init__(self, data) -> None: ...
def __contains__(self, key): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, key): ...
def keys(self, prefix: Any | None = ...): ...

View File

@@ -16,7 +16,7 @@ class BoundMethodDispatcher(Mapping[Any, Any]):
def __getitem__(self, key): ...
def get(self, key, default): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __contains__(self, key): ...
def isSurrogatePair(data): ...

View File

@@ -12,7 +12,7 @@ class Root:
def __init__(self, et) -> None: ...
def __getitem__(self, key): ...
def getnext(self) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
class Doctype:
root_node: Any
@@ -39,10 +39,10 @@ class FragmentWrapper:
def __getattr__(self, name): ...
def getnext(self): ...
def __getitem__(self, key): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def getparent(self) -> None: ...
def __unicode__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
class TreeWalker(NonRecursiveTreeWalker):
fragmentChildren: Any

View File

@@ -30,7 +30,7 @@ class Authentication:
def __gt__(self, auth): ...
def __le__(self, auth): ...
def __ge__(self, auth): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
class BasicAuthentication(Authentication):
def __init__(self, credentials, host, request_uri, headers, response, content, http) -> None: ...

View File

@@ -16,11 +16,11 @@ class CaseInsensitiveDict(OrderedDict[_KT, _VT], Generic[_KT, _VT]):
def setdefault(self, key, default: Any | None = ...): ...
def update(self, other: Any | None = ..., **kw) -> None: ... # type: ignore[override]
def __contains__(self, key): ...
def __delitem__(self, key): ...
def __delitem__(self, key) -> None: ...
def __getitem__(self, key): ...
def __setitem__(self, key, value): ...
def __setitem__(self, key, value) -> None: ...
class CaseInsensitiveKey(unicode):
def __new__(cls, value): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...

View File

@@ -10,7 +10,7 @@ class DataProxy:
def __iter__(self): ...
def __eq__(self, other): ...
__hash__: ClassVar[None] # type: ignore[assignment]
def __len__(self): ...
def __len__(self) -> int: ...
def __setitem__(self, key, value) -> None: ...
def __getitem__(self, key): ...
def __contains__(self, key): ...

View File

@@ -79,7 +79,7 @@ class ErrorTree:
def __getitem__(self, index): ...
def __setitem__(self, index, value) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
@property
def total_errors(self): ...

View File

@@ -29,5 +29,5 @@ class AttrDef:
) -> None: ...
def __eq__(self, other): ...
def __lt__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __setattr__(self, key, value) -> None: ...

View File

@@ -10,7 +10,7 @@ class Attribute:
cursor: Any
other_names: Any
def __init__(self, attr_def, entry, cursor) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, item): ...
def __eq__(self, other): ...

View File

@@ -25,8 +25,8 @@ class Cursor:
) -> None: ...
def __iter__(self): ...
def __getitem__(self, item): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def match_dn(self, dn): ...
def match(self, attributes, value): ...
def remove(self, entry) -> None: ...

View File

@@ -14,8 +14,8 @@ class ObjectDef:
def __iadd__(self, other): ...
def __isub__(self, other): ...
def __iter__(self): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def __contains__(self, item): ...
def add_from_schema(self, attribute_name, mandatory: bool = ...) -> None: ...
def add_attribute(self, definition: Any | None = ...) -> None: ...

View File

@@ -20,7 +20,7 @@ class ServerPoolState:
def get_server(self): ...
def find_active_random_server(self): ...
def find_active_server(self, starting): ...
def __len__(self): ...
def __len__(self) -> int: ...
class ServerPool:
servers: Any
@@ -32,7 +32,7 @@ class ServerPool:
def __init__(
self, servers: Any | None = ..., pool_strategy=..., active: bool = ..., exhaust: bool = ..., single_state: bool = ...
) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __getitem__(self, item): ...
def __iter__(self): ...
def add(self, servers) -> None: ...

View File

@@ -11,7 +11,7 @@ class CaseInsensitiveDict(MutableMapping[_KT, _VT], Generic[_KT, _VT]):
def __setitem__(self, key, item) -> None: ...
def __getitem__(self, key): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def keys(self): ...
def values(self): ...
def items(self): ...

View File

@@ -31,7 +31,7 @@ class ChartBase(Serialisable):
pivotFormats: Any
idx_base: int
def __init__(self, axId=..., **kw) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __iadd__(self, other): ...
def to_tree(self, namespace: Any | None = ..., tagname: Any | None = ..., idx: Any | None = ...): ... # type: ignore[override]
def set_categories(self, labels) -> None: ...

View File

@@ -23,7 +23,7 @@ class Reference(Strict):
max_row: Any | None = ...,
range_string: Any | None = ...,
) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __eq__(self, other): ...
@property
def rows(self) -> Generator[Any, None, None]: ...

View File

@@ -22,6 +22,6 @@ class Serialisable(_Serialiasable):
def __iter__(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __add__(self, other): ...
def __copy__(self): ...

View File

@@ -90,7 +90,7 @@ class SpreadsheetDrawing(Serialisable):
charts: Any
images: Any
def __init__(self, twoCellAnchor=..., oneCellAnchor=..., absoluteAnchor=...) -> None: ...
def __hash__(self): ...
def __bool__(self): ...
def __hash__(self) -> int: ...
def __bool__(self) -> bool: ...
@property
def path(self): ...

View File

@@ -11,15 +11,15 @@ class ConditionalFormatting(Serialisable):
rules: Any
def __init__(self, sqref=..., pivot: Any | None = ..., cfRule=..., extLst: Any | None = ...) -> None: ...
def __eq__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __contains__(self, coord): ...
class ConditionalFormattingList:
max_priority: int
def __init__(self) -> None: ...
def add(self, range_string, cfRule) -> None: ...
def __bool__(self): ...
def __len__(self): ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
def __iter__(self): ...
def __getitem__(self, key): ...
def __delitem__(self, key) -> None: ...

View File

@@ -25,8 +25,8 @@ class RelationshipList(Serialisable):
Relationship: Any
def __init__(self, Relationship=...) -> None: ...
def append(self, value) -> None: ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
def find(self, content_type) -> Generator[Any, None, None]: ...
def __getitem__(self, key): ...
def to_tree(self): ...

View File

@@ -21,7 +21,7 @@ class StyleArray(array[Any]):
quotePrefix: Any
xfId: Any
def __new__(cls, args=...): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __copy__(self): ...
def __deepcopy__(self, memo): ...

View File

@@ -55,6 +55,6 @@ class ColorList(Serialisable):
mruColors: Any
__elements__: Any
def __init__(self, indexedColors=..., mruColors=...) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
@property
def index(self): ...

View File

@@ -31,7 +31,7 @@ class DifferentialStyleList(Serialisable):
def __init__(self, dxf=..., count: Any | None = ...) -> None: ...
def append(self, dxf) -> None: ...
def add(self, dxf): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __getitem__(self, idx): ...
@property
def count(self): ...

View File

@@ -64,7 +64,7 @@ class DefinedNameList(Serialisable):
definedName: Any
def __init__(self, definedName=...) -> None: ...
def append(self, defn) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __contains__(self, name): ...
def __getitem__(self, name): ...
def get(self, name, scope: Any | None = ...): ...

View File

@@ -67,7 +67,7 @@ class MultiCellRange(Strict):
def __iadd__(self, coord): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def remove(self, coord) -> None: ...
def __iter__(self): ...
def __copy__(self): ...

View File

@@ -67,6 +67,6 @@ class DataValidationList(Serialisable):
) -> None: ...
@property
def count(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def append(self, dv) -> None: ...
def to_tree(self, tagname: Any | None = ...): ... # type: ignore[override]

View File

@@ -40,7 +40,7 @@ class SortState(Serialisable):
sortCondition=...,
extLst: Any | None = ...,
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
class IconFilter(Serialisable):
tagname: str
@@ -161,6 +161,6 @@ class AutoFilter(Serialisable):
def __init__(
self, ref: Any | None = ..., filterColumn=..., sortState: Any | None = ..., extLst: Any | None = ...
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def add_filter_column(self, col_id, vals, blank: bool = ...) -> None: ...
def add_sort_condition(self, ref, descending: bool = ...) -> None: ...

View File

@@ -17,7 +17,7 @@ class _HeaderFooterPart(Strict):
def __init__(
self, text: Any | None = ..., font: Any | None = ..., size: Any | None = ..., color: Any | None = ...
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
@classmethod
def from_str(cls, text): ...
@@ -27,7 +27,7 @@ class HeaderFooterItem(Strict):
centre: Any
right: Any
def __init__(self, left: Any | None = ..., right: Any | None = ..., center: Any | None = ...) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def to_tree(self, tagname): ...
@classmethod
def from_tree(cls, node): ...
@@ -58,4 +58,4 @@ class HeaderFooter(Serialisable):
firstHeader: Any | None = ...,
firstFooter: Any | None = ...,
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...

View File

@@ -25,6 +25,6 @@ class HyperlinkList(Serialisable):
tagname: str
hyperlink: Any
def __init__(self, hyperlink=...) -> None: ...
def __bool__(self): ...
def __len__(self): ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
def append(self, value) -> None: ...

View File

@@ -46,7 +46,7 @@ class PrintPageSetup(Serialisable):
copies: Any | None = ...,
id: Any | None = ...,
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
@property
def sheet_properties(self): ...
@property
@@ -75,7 +75,7 @@ class PrintOptions(Serialisable):
gridLines: Any | None = ...,
gridLinesSet: Any | None = ...,
) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
class PageMargins(Serialisable):
tagname: str

View File

@@ -20,8 +20,8 @@ class RowBreak(Serialisable):
__elements__: Any
__attrs__: Any
def __init__(self, count: Any | None = ..., manualBreakCount: Any | None = ..., brk=...) -> None: ...
def __bool__(self): ...
def __len__(self): ...
def __bool__(self) -> bool: ...
def __len__(self) -> int: ...
@property
def count(self): ...
@property

View File

@@ -61,4 +61,4 @@ class SheetProtection(Serialisable, _Protected):
def set_password(self, value: str = ..., already_hashed: bool = ...) -> None: ...
def enable(self) -> None: ...
def disable(self) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...

View File

@@ -45,4 +45,4 @@ class ScenarioList(Serialisable):
__elements__: Any
def __init__(self, scenario=..., current: Any | None = ..., show: Any | None = ..., sqref: Any | None = ...) -> None: ...
def append(self, scenario) -> None: ...
def __bool__(self): ...
def __bool__(self) -> bool: ...

View File

@@ -169,7 +169,7 @@ class TablePartList(Serialisable):
def append(self, part) -> None: ...
@property
def count(self): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
class TableList(dict[Any, Any]):
def add(self, table) -> None: ...

View File

@@ -38,7 +38,7 @@ class WordsetDict(MutableMapping[Any, Any]):
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __contains__(self, key): ...
default_wordsets: Any

View File

@@ -40,7 +40,7 @@ rounds_cost_values: Any
class SequenceMixin:
def __getitem__(self, idx): ...
def __iter__(self): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...

View File

@@ -160,7 +160,7 @@ class PrefixWrapper:
def ident_values(self): ...
def __dir__(self): ...
def __getattr__(self, attr): ...
def __setattr__(self, attr, value): ...
def __setattr__(self, attr, value) -> None: ...
def using(self, **kwds): ...
def needs_update(self, hash, **kwds): ...
def identify(self, hash): ...

View File

@@ -39,7 +39,7 @@ class Proxy:
__enter__: Incomplete
__exit__: Incomplete
def __getattr__(self, attr): ...
def __setattr__(self, attr, value): ...
def __setattr__(self, attr, value) -> None: ...
class DatabaseProxy(Proxy):
def connection_context(self): ...
@@ -130,7 +130,7 @@ class Source(Node):
class _HashableSource:
def __init__(self, *args, **kwargs) -> None: ...
def alias(self, name) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
__lt__: Incomplete
@@ -267,7 +267,7 @@ class Column(ColumnBase):
name: Incomplete
def __init__(self, source, name) -> None: ...
def get_sort_key(self, ctx): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __sql__(self, ctx): ...
class WrappedNode(ColumnBase):
@@ -287,7 +287,7 @@ class _DynamicEntity:
class Alias(WrappedNode):
c: Incomplete
def __init__(self, node, alias) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
@property
def name(self): ...
@name.setter
@@ -357,7 +357,7 @@ class Entity(ColumnBase):
def __init__(self, *path) -> None: ...
def __getattr__(self, attr): ...
def get_sort_key(self, ctx): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __sql__(self, ctx): ...
class SQL(ColumnBase):
@@ -503,7 +503,7 @@ class BaseQuery(Node):
def iterator(self, database: Incomplete | None = ...): ...
def __iter__(self): ...
def __getitem__(self, value): ...
def __len__(self): ...
def __len__(self) -> int: ...
class RawQuery(BaseQuery):
def __init__(self, sql: Incomplete | None = ..., params: Incomplete | None = ..., **kwargs) -> None: ...
@@ -998,7 +998,7 @@ class CursorWrapper:
def __init__(self, cursor) -> None: ...
def __iter__(self): ...
def __getitem__(self, item): ...
def __len__(self): ...
def __len__(self) -> int: ...
def initialize(self) -> None: ...
def iterate(self, cache: bool = ...): ...
def process_row(self, row): ...
@@ -1094,7 +1094,7 @@ class Field(ColumnBase):
db_column: Incomplete | None = ...,
_hidden: bool = ...,
) -> None: ...
def __hash__(self): ...
def __hash__(self) -> int: ...
model: Incomplete
name: Incomplete
def bind(self, model, name, set_attribute: bool = ...) -> None: ...
@@ -1403,7 +1403,7 @@ class CompositeKey(MetaField):
def __set__(self, instance, value) -> None: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __sql__(self, ctx): ...
model: Incomplete
column_name: Incomplete
@@ -1532,8 +1532,8 @@ class ModelBase(type):
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...
def __contains__(self, key): ...
def __len__(self): ...
def __bool__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Incomplete
def __sql__(self, ctx): ...
@@ -1601,7 +1601,7 @@ class Model(metaclass=ModelBase):
def dirty_fields(self): ...
def dependencies(self, search_nullable: bool = ...) -> Generator[Incomplete, None, None]: ...
def delete_instance(self, recursive: bool = ..., delete_nullable: bool = ...): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __sql__(self, ctx): ...

View File

@@ -68,7 +68,7 @@ class Struct:
def __contains__(self, item: tAny): ...
def __setitem__(self, key: tAny, value: tAny) -> None: ...
def __delitem__(self, key: tAny) -> None: ...
def __len__(self): ...
def __len__(self) -> int: ...
def __iter__(self): ...
def keys(self): ...
def values(self): ...
@@ -78,7 +78,7 @@ class Struct:
def update(self, dictionary: tAny) -> None: ...
class ListValue:
def __len__(self): ...
def __len__(self) -> int: ...
def append(self, value: tAny) -> None: ...
def extend(self, elem_seq: tAny) -> None: ...
def __getitem__(self, index: tAny): ...

View File

@@ -151,7 +151,7 @@ class Column:
def __getstate__(self): ...
def __gt__(self, __other): ...
def __le__(self, __other): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __lt__(self, __other): ...
def __ne__(self, __other): ...
def __setstate__(self, state): ...
@@ -295,9 +295,9 @@ class Notify:
def __ge__(self, __other): ...
def __getitem__(self, __index): ...
def __gt__(self, __other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __le__(self, __other): ...
def __len__(self): ...
def __len__(self) -> int: ...
def __lt__(self, __other): ...
def __ne__(self, __other): ...
@@ -355,7 +355,7 @@ class Xid:
def __init__(self, *args, **kwargs) -> None: ...
def from_string(self, *args, **kwargs): ...
def __getitem__(self, __index): ...
def __len__(self): ...
def __len__(self) -> int: ...
_T_cur = TypeVar("_T_cur", bound=cursor)

View File

@@ -17,10 +17,10 @@ class Range:
@property
def upper_inc(self): ...
def __contains__(self, x): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __hash__(self): ...
def __hash__(self) -> int: ...
def __lt__(self, other): ...
def __le__(self, other): ...
def __gt__(self, other): ...

View File

@@ -12,14 +12,14 @@ class CDispatch:
lazydata: Incomplete | None = ...,
) -> None: ...
def __call__(self, *args): ...
def __bool__(self): ...
def __bool__(self) -> bool: ...
def __dir__(self): ...
def __eq__(self, other): ...
def __ne__(self, other): ...
def __int__(self): ...
def __len__(self): ...
def __int__(self) -> int: ...
def __len__(self) -> int: ...
def __getitem__(self, index): ...
def __setitem__(self, index, *args): ...
def __setitem__(self, index, *args) -> None: ...
def __LazyMap__(self, attr): ...
def __AttrToID__(self, attr): ...
ob: Incomplete

View File

@@ -47,8 +47,8 @@ class RequestsCookieJar(CookieJar, MutableMapping[Any, Any]):
def multiple_domains(self): ...
def get_dict(self, domain=..., path=...): ...
def __getitem__(self, name): ...
def __setitem__(self, name, value): ...
def __delitem__(self, name): ...
def __setitem__(self, name, value) -> None: ...
def __delitem__(self, name) -> None: ...
def set_cookie(self, cookie, *args, **kwargs): ...
def update(self, other): ...
def copy(self): ...

View File

@@ -20,9 +20,9 @@ class StripeObject(dict[Any, Any]):
@property
def last_response(self): ...
def update(self, update_dict): ...
def __setattr__(self, k, v): ...
def __setattr__(self, k, v) -> None: ...
def __getattr__(self, k): ...
def __delattr__(self, k): ...
def __delattr__(self, k) -> None: ...
def __setitem__(self, k, v) -> None: ...
def __getitem__(self, k): ...
def __delitem__(self, k) -> None: ...

View File

@@ -27,4 +27,4 @@ class ThemedTk(tkinter.Tk, ThemedWidget):
def cget(self, k): ...
def configure(self, kw: Any | None = ..., **kwargs): ... # type: ignore[override]
def __getitem__(self, k): ...
def __setitem__(self, k, v): ...
def __setitem__(self, k, v) -> None: ...

View File

@@ -14,18 +14,18 @@ class RecentlyUsedContainer(MutableMapping[_KT, _VT]):
lock: Any
def __init__(self, maxsize=..., dispose_func=...) -> None: ...
def __getitem__(self, key): ...
def __setitem__(self, key, value): ...
def __delitem__(self, key): ...
def __len__(self): ...
def __setitem__(self, key, value) -> None: ...
def __delitem__(self, key) -> None: ...
def __len__(self) -> int: ...
def __iter__(self): ...
def clear(self): ...
def keys(self): ...
class HTTPHeaderDict(MutableMapping[str, str]):
def __init__(self, headers=..., **kwargs) -> None: ...
def __setitem__(self, key, val): ...
def __setitem__(self, key, val) -> None: ...
def __getitem__(self, key): ...
def __delitem__(self, key): ...
def __delitem__(self, key) -> None: ...
def __contains__(self, key): ...
def __eq__(self, other): ...
def __iter__(self) -> NoReturn: ...

View File

@@ -133,7 +133,7 @@ def defaultSerialize(obj, buf, lineLength): ...
class Stack:
stack: Any
def __len__(self): ...
def __len__(self) -> int: ...
def top(self): ...
def topName(self): ...
def modifyTop(self, item) -> None: ...