Skip to content

Commit b32134c

Browse files
committed
fix E265
1 parent 61e2be5 commit b32134c

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ build-backend = "mesonpy"
4343
# We currently ignore
4444
# E129 visually indented line with same indent as next logical line
4545
max-line-length = 120
46-
ignore = ['E129','E265','E501','E731','E741','E743']
46+
ignore = ['E129','E501','E731','E741','E743']
4747
exclude = 'src/flint/flintlib/.*'
4848

4949
[tool.spin]

src/flint/types/arb.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ cdef class arb(flint_scalar):
192192
if rad is not None:
193193
rad = arb(rad)
194194
arb_add_error(self.val, (<arb>rad).val)
195-
#rad = arf(rad)
196-
#arb_add_error_arf(self.val, (<arf>rad).val)
195+
# rad = arf(rad)
196+
# arb_add_error_arf(self.val, (<arf>rad).val)
197197

198198
cpdef bint is_zero(self):
199199
return arb_is_zero(self.val)

src/flint/types/arb_series.pyx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,9 +830,6 @@ cdef class arb_series(flint_series):
830830
v = f(arb_series([arb(m, r)]))
831831
if v[0] != 0:
832832
continue
833-
#ctx.cap = 1
834-
#fa = xsgn(f(arb_series(a))[0])
835-
#fb = xsgn(f(arb_series(b))[0])
836833
ctx.cap = 2
837834
if fa * fb < 0 and f(arb_series([arb(m, r), 1]))[1] != 0:
838835
roots.append((a, b))

src/flint/types/fmpq_series.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from flint.flintlib.fmpq_poly cimport *
2121
cdef fmpq_series_coerce_operands(x, y):
2222
if isinstance(y, (int, fmpz, fmpz_poly, fmpz_series, fmpq, fmpq_poly)):
2323
return x, fmpq_series(y)
24-
#if isinstance(y, (nmod, nmod_poly, nmod_series)):
24+
# if isinstance(y, (nmod, nmod_poly, nmod_series)):
2525
# return nmod_series(x), nmod_series(y)
2626
if isinstance(y, (float, arb, arb_poly, arb_series)):
2727
return arb_series(x), arb_series(y)

src/flint/types/fmpz.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ cdef class fmpz(flint_scalar):
528528
return u
529529

530530
# This is the correct code when fmpz_or is fixed (in flint 3.0.0)
531-
#
532-
#def __or__(self, other):
531+
532+
# def __or__(self, other):
533533
# cdef fmpz_struct tval[1]
534534
# cdef int ttype = FMPZ_UNKNOWN
535535
# ttype = fmpz_set_any_ref(tval, other)
@@ -540,8 +540,8 @@ cdef class fmpz(flint_scalar):
540540
# if ttype == FMPZ_TMP:
541541
# fmpz_clear(tval)
542542
# return u
543-
#
544-
#def __ror__(self, other):
543+
544+
# def __ror__(self, other):
545545
# cdef fmpz_struct tval[1]
546546
# cdef int ttype = FMPZ_UNKNOWN
547547
# ttype = fmpz_set_any_ref(tval, other)

src/flint/types/fmpz_mod_mat.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cdef class fmpz_mod_mat(flint_mat):
1414
cdef void _init_empty(self, slong m, slong n, list args)
1515
cdef void _init_empty_ctx(self, slong m, slong n, fmpz_mod_ctx ctx)
1616
cdef void _init_from_list(self, slong m, slong n, list entries, list args)
17-
#cdef void _init_from_matrix(self, flint_mat M, list args)
17+
# cdef void _init_from_matrix(self, flint_mat M, list args)
1818
cdef void _init_from_matrix(self, M, list args)
1919
cdef fmpz_mod_ctx _parse_args(self, list args)
2020
cdef fmpz_mod_mat _new(self, slong m, slong n, fmpz_mod_ctx ctx)

src/flint/types/fmpz_series.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ cdef fmpz_series_coerce_operands(x, y):
2222
return x, fmpz_series(y)
2323
if isinstance(y, (fmpq, fmpq_poly, fmpq_series)):
2424
return fmpq_series(x), fmpq_series(y)
25-
#if isinstance(y, (nmod, nmod_poly, nmod_series)):
26-
# return nmod_series(x), nmod_series(y)
25+
# if isinstance(y, (nmod, nmod_poly, nmod_series)):
26+
# return nmod_series(x), nmod_series(y)
2727
if isinstance(y, (float, arb, arb_poly, arb_series)):
2828
return arb_series(x), arb_series(y)
2929
if isinstance(y, (complex, acb, acb_poly, acb_series)):

0 commit comments

Comments
 (0)