Skip to content

Commit 91737dd

Browse files
committed
Fix a small typo
1 parent 665a3fa commit 91737dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/combinat/root_system/reflection_group_element.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,10 @@ cdef class RealReflectionGroupElement(ComplexReflectionGroupElement):
812812
False
813813
"""
814814
if not isinstance(positive, bool):
815-
raise TypeError("%s is not a boolean" % (bool))
815+
raise TypeError(f"{positive} is not a boolean")
816816

817817
if i not in self._parent.index_set():
818-
raise ValueError("the given index %s is not in the index set" % i)
818+
raise ValueError(f"the given index {i} is not in the index set")
819819

820820
negative = not positive
821821

0 commit comments

Comments
 (0)