Add Makefile, black, reformat with black
This commit is contained in:
parent
cfc50b82bb
commit
d2fa4c586f
16 changed files with 978 additions and 366 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from collections import Sequence
|
||||
from typing import Any, Dict, Mapping, Union, List
|
||||
from typing import Any, Dict, List, Mapping, Union
|
||||
|
||||
from redis_developer.model.model import Expression
|
||||
|
||||
|
|
@ -91,6 +91,7 @@ class Not(LogicalOperatorForListOfExpressions):
|
|||
-(@price:[-inf 10]) -(@category:{Sweets})
|
||||
```
|
||||
"""
|
||||
|
||||
@property
|
||||
def query(self):
|
||||
return "-(expression1) -(expression2)"
|
||||
|
|
@ -102,5 +103,3 @@ class QueryResolver:
|
|||
|
||||
def resolve(self) -> str:
|
||||
"""Resolve expressions to a RediSearch query string."""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue