Skip to content

Commit 286b0e7

Browse files
committed
demo: Cython 3.2 fails with bool | None annotation
1 parent cddbf41 commit 286b0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flint/types/_gr.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,11 +602,11 @@ cdef class gr_ctx(flint_ctx):
602602
###
603603
# Square Roots
604604

605-
def is_square(self, x):
605+
def is_square(self, x) -> bool | None:
606606
"""
607607
Returns whether x is a perfect square in the context.
608608
"""
609-
return self._is_square(self(x))
609+
return truth_to_py(self._is_square(self(x)))
610610

611611
def sqrt(self, x) -> gr:
612612
"""

0 commit comments

Comments
 (0)