Skip to content

Commit

Permalink
fix type issue with elastic cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Oct 16, 2024
1 parent 0a04de2 commit 5729abc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superdesk/core/resources/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def get_model_instance(self, data: Dict[str, Any]):


class ElasticsearchResourceCursorAsync(ResourceCursorAsync[ResourceModelType], Generic[ResourceModelType]):
_index: int
hits: dict[str, Any]
no_hits = {"hits": {"total": 0, "hits": []}}

def __init__(self, data_class: Type[ResourceModelType], hits=None):
Expand Down

0 comments on commit 5729abc

Please sign in to comment.