Skip to content

Commit

Permalink
chore: make typing a little safer
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 30, 2024
1 parent c93fc80 commit 3b12692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fgpyo/util/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from threading import RLock
from typing import Any
from typing import Callable
from typing import Iterable
from typing import Collection
from typing import Literal
from typing import Optional
from typing import Union
Expand Down Expand Up @@ -166,7 +166,7 @@ def record_alignment(

def record_alignments(
self,
recs: Iterable[AlignedSegment],
recs: Collection[AlignedSegment],
) -> bool:
"""Correctly record multiple pysam.AlignedSegments (zero-based coordinates).
Expand Down
2 changes: 1 addition & 1 deletion tests/fgpyo/util/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def test_record_multiple_alignments() -> None:
)

# Assert record is logged
assert progress.record_alignments(recs=template.all_recs()) is True
assert progress.record_alignments(recs=list(template.all_recs())) is True

# Assert every record was logged
assert len(actual) == 6

0 comments on commit 3b12692

Please sign in to comment.