Skip to content

Commit d9d6c47

Browse files
committed
fix: address ai review comments
1 parent 70eb83d commit d9d6c47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

openms_python/py_aasequence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def has_suffix(self, suffix: str) -> bool:
394394

395395

396396
# ===================== Exporting =======================
397-
def to_string(self, modified=True, mod_format: Optional[Literal['default', 'unimod', 'bracket']] = 'default') -> str:
397+
def to_string(self, modified=True, mod_format: Literal['default', 'unimod', 'bracket'] = 'default') -> str:
398398
"""
399399
Get string representation of the sequence.
400400
@@ -404,7 +404,7 @@ def to_string(self, modified=True, mod_format: Optional[Literal['default', 'unim
404404
'default' for OpenMS format,
405405
'unimod' for UniMod format,
406406
'bracket' for bracket notation.
407-
Default is 'unimod'.
407+
Default is 'default'.
408408
409409
Returns:
410410
str: Amino acid sequence as string.
@@ -424,4 +424,4 @@ def to_string(self, modified=True, mod_format: Optional[Literal['default', 'unim
424424
elif mod_format == 'bracket':
425425
return self._sequence.toBracketString()
426426
else:
427-
raise ValueError(f"Unsupported mod_format: {mod_format}, supported are 'unimod' and 'bracket'")
427+
raise ValueError(f"Unsupported mod_format: {mod_format}, supported are 'default', 'unimod' and 'bracket'")

0 commit comments

Comments
 (0)