All __nonzero__ are methods that return bool (#9139)

This commit is contained in:
Nikita Sobolev
2022-11-09 17:53:42 +03:00
committed by GitHub
parent cb5ed3c5fb
commit 04ae11cdd0
11 changed files with 14 additions and 14 deletions

View File

@@ -46,7 +46,7 @@ class _EmptyListener(_InstanceLevelDispatch):
def __len__(self) -> int: ...
def __iter__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class _CompoundListener(_InstanceLevelDispatch):
def exec_once(self, *args, **kw) -> None: ...
@@ -55,7 +55,7 @@ class _CompoundListener(_InstanceLevelDispatch):
def __len__(self) -> int: ...
def __iter__(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class _ListenerCollection(_CompoundListener):
parent_listeners: Any

View File

@@ -97,7 +97,7 @@ class _AssociationCollection:
def col(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class _AssociationList(_AssociationCollection):
def __getitem__(self, index): ...
@@ -163,7 +163,7 @@ class _AssociationDict(_AssociationCollection):
class _AssociationSet(_AssociationCollection):
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
def __contains__(self, value): ...
def __iter__(self): ...
def add(self, value) -> None: ...

View File

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

View File

@@ -74,7 +74,7 @@ class CollectionAdapter:
def __iter__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
def fire_append_wo_mutation_event(self, item, initiator: Any | None = ...): ...
def fire_append_event(self, item, initiator: Any | None = ...): ...
def fire_remove_event(self, item, initiator: Any | None = ...) -> None: ...

View File

@@ -51,7 +51,7 @@ class DynamicCollectionAdapter:
def __iter__(self): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class AppenderMixin:
query_class: Any

View File

@@ -58,7 +58,7 @@ class ClassManager(HasMemoized, dict[Any, Any]):
def has_state(self, instance): ...
def has_parent(self, state, key, optimistic: bool = ...): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class _SerializeManager:
class_: Any

View File

@@ -94,7 +94,7 @@ class AbstractEntityRegistry(PathRegistry):
@property
def mapper(self): ...
def __bool__(self) -> bool: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
def __getitem__(self, entity): ...
class SlotsEntityRegistry(AbstractEntityRegistry):

View File

@@ -34,7 +34,7 @@ class ClauseElement(roles.SQLRole, SupportsWrappingAnnotations, MemoizedHasCache
def compile(self, bind: Any | None = ..., dialect: Any | None = ..., **kw): ...
def __invert__(self): ...
def __bool__(self) -> None: ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
class ColumnElement(
roles.ColumnArgumentOrKeyRole,
@@ -285,7 +285,7 @@ class BinaryExpression(ColumnElement[Any]):
self, left, right, operator, type_: Any | None = ..., negate: Any | None = ..., modifiers: Any | None = ...
) -> None: ...
def __bool__(self): ...
__nonzero__: Any
def __nonzero__(self) -> bool: ...
@property
def is_comparison(self): ...
def self_group(self, against: Any | None = ...): ...

View File

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

View File

@@ -29,7 +29,7 @@ class CTypesGenericArray(CTypesData):
class CTypesGenericPtr(CTypesData):
kind: str
def __nonzero__(self): ...
def __nonzero__(self) -> bool: ...
def __bool__(self) -> bool: ...
class CTypesBaseStructOrUnion(CTypesData): ...

View File

@@ -1534,7 +1534,7 @@ class ModelBase(type):
def __contains__(self, key): ...
def __len__(self) -> int: ...
def __bool__(self) -> bool: ...
__nonzero__: Incomplete
def __nonzero__(self) -> bool: ...
def __sql__(self, ctx): ...
class _BoundModelsContext(_callable_context_manager):