Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nils Homer <[email protected]>
  • Loading branch information
tfenne and nh13 authored Jan 14, 2025
1 parent 4817ab0 commit 87c722f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prymer/api/oligo.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def __post_init__(self) -> None:
@property
def id(self) -> str:
"""Returns the name if there is one, otherwise the span."""
return self.name if self.name is not None else str(self.span)
return self.name if self.name is not None else f"{self.span}"


@property
def length(self) -> int:
Expand Down

0 comments on commit 87c722f

Please sign in to comment.