Skip to content

Commit

Permalink
refactor: use cls
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Jan 31, 2024
1 parent 4f482ce commit e64409f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fgpyo/sam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def from_read(cls, read: pysam.AlignedSegment) -> List["SupplementaryAlignment"]
"""Returns a list of SupplementaryAlignments for a given pysam.AlignedSegment."""
if read.has_tag("SA"):
sa_tag: str = cast(str, read.get_tag("SA"))
return SupplementaryAlignment.parse_sa_tag(sa_tag)
return cls.parse_sa_tag(sa_tag)
else:
return []

Expand Down

0 comments on commit e64409f

Please sign in to comment.