@@ -878,7 +878,7 @@ def unrank(num_leaves, rank, *, span=1, branch_length=1) -> Tree:
878878 from which the tree is taken will have its
879879 :attr:`~tskit.TreeSequence.sequence_length` equal to ``span``.
880880 :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
882882 with ``num_leaves`` leaves.
883883 """
884884 rank_tree = combinatorics .RankTree .unrank (num_leaves , rank )
@@ -1600,7 +1600,7 @@ def root(self):
16001600
16011601 :return: The root node.
16021602 :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.
16041604 """
16051605 if self .has_multiple_roots :
16061606 raise ValueError ("More than one root exists. Use tree.roots instead" )
@@ -5211,10 +5211,10 @@ def haplotypes(
52115211 *Deprecated in 0.3.0. Use ``isolated_as_missing``, but inverting value.
52125212 Will be removed in a future version*
52135213 :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
52155215 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
52185218 """
52195219 if impute_missing_data is not None :
52205220 warnings .warn (
@@ -5521,10 +5521,9 @@ def alignments(
55215521 :return: An iterator over the alignment strings for specified samples in
55225522 this tree sequence, in the order given in ``samples``.
55235523 :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
55285527 single ascii character.
55295528 """
55305529 if not self .discrete_genome :
0 commit comments