We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cddbf41 commit 286b0e7Copy full SHA for 286b0e7
src/flint/types/_gr.pyx
@@ -602,11 +602,11 @@ cdef class gr_ctx(flint_ctx):
602
###
603
# Square Roots
604
605
- def is_square(self, x):
+ def is_square(self, x) -> bool | None:
606
"""
607
Returns whether x is a perfect square in the context.
608
609
- return self._is_square(self(x))
+ return truth_to_py(self._is_square(self(x)))
610
611
def sqrt(self, x) -> gr:
612
0 commit comments