diff --git a/beanie/odm/operators/find/logical.py b/beanie/odm/operators/find/logical.py index f4d9e60d..96adcd21 100644 --- a/beanie/odm/operators/find/logical.py +++ b/beanie/odm/operators/find/logical.py @@ -8,18 +8,19 @@ class BaseFindLogicalOperator(BaseFindOperator, ABC): ... class LogicalOperatorForListOfExpressions(BaseFindLogicalOperator): + # todo: handle query return typing operator: str = "" def __init__( self, *expressions: Union[ - BaseFindOperator, Dict[str, Any], Mapping[str, Any] + BaseFindOperator, Dict[str, Any], Mapping[str, Any], bool ], ): self.expressions = list(expressions) @property - def query(self) -> Mapping[str, Any]: + def query(self): if not self.expressions: raise AttributeError("At least one expression must be provided") if len(self.expressions) == 1: