Skip to content

Commit

Permalink
add return type in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Dec 20, 2024
1 parent 39c1ffd commit 86b99a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ga4gh/vrs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ def validate_adjoined_sequences(cls, v) -> List[Union[iriReference, SequenceLoca
"""Ensure ``adjoinedSequences`` do not have both ``start`` and ``end``
:raises ValueError: If an adjoined sequence has both ``start`` and ``end``
:return: Adjoined sequences represented as iri reference or sequence location
"""
for adjoined_seq in v:
if isinstance(adjoined_seq, SequenceLocation):
Expand Down Expand Up @@ -840,6 +841,7 @@ def validate_copy_change(cls, v) -> MappableConcept:
:raises ValueError: If `primaryCode` is not provided or if its not a valid
EFO code
:return: Copy change represented as mappable concept
"""
if v.primaryCode is None:
err_msg = "`primaryCode` is required."
Expand Down

0 comments on commit 86b99a1

Please sign in to comment.