Fix type hints for AlignmentFile.pileup to return PileupColumns
Fixes
As far as I can tell this was just a oversight when the type hints were added, and there isn't anything more complicated going on (e.g. it returns different types at different time).
@@ -191,7 +191,7 @@ class AlignmentFile(HTSFile):
class IteratorRow:
def __iter__(self) -> IteratorRow: ...
- def __next__(self) -> AlignedSegment: ...
+ def __next__(self) -> PileupColumn: ...
class IteratorRowAll(IteratorRow): ...
class IteratorRowAllRefs(IteratorRow): ...
@@ -201,7 +201,7 @@ class IteratorRowSelection(IteratorRow): ...
class IteratorColumn:
def __iter__(self) -> IteratorRow: ...
- def __next__(self) -> AlignedSegment: ...
+ def __next__(self) -> PileupColumn: ...
@property
def seq_len(self) -> int: ...
def add_reference(self, fastafile: FastaFile) -> None: ...
