Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
InnocentBug committed May 14, 2024
1 parent ebda610 commit 7e9c592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cript/api/paginator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
from cript.nodes.util import load_nodes_from_json


def _get_uuid_score_from_json(node_dict: str) -> Tuple[str, Optional[float]]:
def _get_uuid_score_from_json(node_dict: Dict) -> Tuple[str, Optional[float]]:
"""
Get the UUID string and search score from a JSON node representation if available.
"""
node_uuid = node_dict["uuid"]
node_score = node_dict.get("score", None)
node_uuid: str = node_dict["uuid"]
node_score: Optional[float] = node_dict.get("score", None)

return node_uuid, node_score

Expand All @@ -41,7 +41,7 @@ class Paginator:
_query: str
_current_position: int
_fetched_nodes: list
_uuid_search_score_map: Dict[str, float]
_uuid_search_score_map: Dict
_number_fetched_pages: int = 0
_limit_node_fetches: Optional[int] = None
_start_after_uuid: Optional[str] = None
Expand Down

0 comments on commit 7e9c592

Please sign in to comment.