@@ -878,7 +878,7 @@ def unrank(num_leaves, rank, *, span=1, branch_length=1) -> Tree:
878
878
from which the tree is taken will have its
879
879
:attr:`~tskit.TreeSequence.sequence_length` equal to ``span``.
880
880
:param: float branch_length: The minimum length of a branch in this tree.
881
- :raises: ValueError: If the given rank is out of bounds for trees
881
+ :raises ValueError: If the given rank is out of bounds for trees
882
882
with ``num_leaves`` leaves.
883
883
"""
884
884
rank_tree = combinatorics .RankTree .unrank (num_leaves , rank )
@@ -1600,7 +1600,7 @@ def root(self):
1600
1600
1601
1601
:return: The root node.
1602
1602
:rtype: int
1603
- :raises: :class:` ValueError` if this tree contains more than one root.
1603
+ :raises ValueError: if this tree contains more than one root.
1604
1604
"""
1605
1605
if self .has_multiple_roots :
1606
1606
raise ValueError ("More than one root exists. Use tree.roots instead" )
@@ -5211,10 +5211,10 @@ def haplotypes(
5211
5211
*Deprecated in 0.3.0. Use ``isolated_as_missing``, but inverting value.
5212
5212
Will be removed in a future version*
5213
5213
:rtype: collections.abc.Iterable
5214
- :raises: TypeError if the ``missing_data_character`` or any of the alleles
5214
+ :raises TypeError: if the ``missing_data_character`` or any of the alleles
5215
5215
at a site are not a single ascii character.
5216
- :raises: ValueError
5217
- if the ``missing_data_character`` exists in one of the alleles
5216
+ :raises ValueError: if the ``missing_data_character`` exists in one of the
5217
+ alleles
5218
5218
"""
5219
5219
if impute_missing_data is not None :
5220
5220
warnings .warn (
@@ -5521,10 +5521,9 @@ def alignments(
5521
5521
:return: An iterator over the alignment strings for specified samples in
5522
5522
this tree sequence, in the order given in ``samples``.
5523
5523
:rtype: collections.abc.Iterable
5524
- :raises: ValueError
5525
- if any genome coordinate in this tree sequence is not discrete,
5526
- or if the ``reference_sequence`` is not of the correct length.
5527
- :raises: TypeError if any of the alleles at a site are not a
5524
+ :raises ValueError: if any genome coordinate in this tree sequence is not
5525
+ discrete, or if the ``reference_sequence`` is not of the correct length.
5526
+ :raises TypeError: if any of the alleles at a site are not a
5528
5527
single ascii character.
5529
5528
"""
5530
5529
if not self .discrete_genome :
0 commit comments