Skip to content

Commit

Permalink
Fix type annotation and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Aug 4, 2024
1 parent 137dcb9 commit f055cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gambit/kmers.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __from_json__(cls, data: dict[str, Any]) -> 'KmerSpec':

@attrs(slots=True)
class KmerMatch:
"""Represents a
"""Represents the location of a k-mer prefix found within a DNA sequence.
Attributes
----------
Expand Down
2 changes: 1 addition & 1 deletion src/gambit/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def jaccard_bits(bits1: np.ndarray, bits2: np.ndarray) -> float:
return 1. if union == 0 else intersection / union


def jaccarddist_array(query: KmerSignature, refs: Sequence[KmerSignature], out: np.ndarray = None) -> np.ndarray:
def jaccarddist_array(query: KmerSignature, refs: Sequence[KmerSignature], out: Optional[np.ndarray] = None) -> np.ndarray:
"""
Calculate Jaccard distances between a query k-mer signature and a list of reference signatures.
Expand Down

0 comments on commit f055cf3

Please sign in to comment.