Skip to content

Commit

Permalink
Add missing type hints
Browse files Browse the repository at this point in the history
Co-authored-by: Will Langdale <[email protected]>
  • Loading branch information
leo-mazzone and wpfl-dbt authored Jan 6, 2025
1 parent f4eaf79 commit 09a4b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/matchbox/common/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import rustworkx as rx


def verify_components(table) -> dict:
def verify_components(table: pa.Table) -> dict:
"""
Fast verification of connected components using rustworkx.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _hash_list_int(li: list[int]) -> list[bytes]:
return [HASH_FUNC(str(i).encode("utf-8")).digest() for i in li]


def _unique_clusters(all_parents: Iterable[int], all_probabilities: Iterable[int]):
def _unique_clusters(all_parents: Iterable[int], all_probabilities: Iterable[int]) -> tuple[list[int], list[float]]:
ll = set()
clusters = []
probabilities = []
Expand Down

0 comments on commit 09a4b63

Please sign in to comment.