Skip to content

Commit ce4a8d5

Browse files
committed
fix E222
1 parent 562bd86 commit ce4a8d5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
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','E222','E261','E262','E265','E501','E731','E741','E743']
46+
ignore = ['E129','E261','E262','E265','E501','E731','E741','E743']
4747
exclude = 'src/flint/flintlib/.*'
4848

4949
[tool.spin]

src/flint/types/fq_default_poly.pyx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ cdef class fq_default_poly(flint_poly):
453453
x^2 + 55*x + 109
454454
"""
455455
cdef fq_default_poly res
456-
res = self.ctx.new_ctype_poly()
456+
res = self.ctx.new_ctype_poly()
457457
fq_default_poly_make_monic(
458458
res.val, self.val, self.ctx.field.val
459459
)
@@ -563,7 +563,7 @@ cdef class fq_default_poly(flint_poly):
563563

564564
def __neg__(self):
565565
cdef fq_default_poly res
566-
res = self.ctx.new_ctype_poly()
566+
res = self.ctx.new_ctype_poly()
567567
fq_default_poly_neg(
568568
res.val, self.val, self.ctx.field.val
569569
)
@@ -576,7 +576,7 @@ cdef class fq_default_poly(flint_poly):
576576
if other is NotImplemented:
577577
return NotImplemented
578578

579-
res = self.ctx.new_ctype_poly()
579+
res = self.ctx.new_ctype_poly()
580580
fq_default_poly_add(
581581
res.val, self.val, (<fq_default_poly>other).val, self.ctx.field.val
582582
)
@@ -592,7 +592,7 @@ cdef class fq_default_poly(flint_poly):
592592
if other is NotImplemented:
593593
return NotImplemented
594594

595-
res = self.ctx.new_ctype_poly()
595+
res = self.ctx.new_ctype_poly()
596596
fq_default_poly_sub(
597597
res.val, self.val, (<fq_default_poly>other).val, self.ctx.field.val
598598
)
@@ -605,15 +605,15 @@ cdef class fq_default_poly(flint_poly):
605605
if other is NotImplemented:
606606
return NotImplemented
607607

608-
res = self.ctx.new_ctype_poly()
608+
res = self.ctx.new_ctype_poly()
609609
fq_default_poly_sub(
610610
res.val, (<fq_default_poly>other).val, self.val, self.ctx.field.val
611611
)
612612
return res
613613

614614
def __mul__(self, other):
615615
cdef fq_default_poly res
616-
res = self.ctx.new_ctype_poly()
616+
res = self.ctx.new_ctype_poly()
617617

618618
# First try scalar multiplication
619619
if not typecheck(other, fq_default_poly):
@@ -766,7 +766,7 @@ cdef class fq_default_poly(flint_poly):
766766

767767
def __truediv__(self, other):
768768
cdef fq_default_poly res
769-
res = self.ctx.new_ctype_poly()
769+
res = self.ctx.new_ctype_poly()
770770

771771
# First try scalar division
772772
if not typecheck(other, fq_default_poly):
@@ -854,7 +854,7 @@ cdef class fq_default_poly(flint_poly):
854854
if other.is_zero():
855855
raise ZeroDivisionError("Cannot compute remainder modulo 0")
856856

857-
res = self.ctx.new_ctype_poly()
857+
res = self.ctx.new_ctype_poly()
858858
fq_default_poly_rem(
859859
res.val, self.val, (<fq_default_poly>other).val, self.ctx.field.val
860860
)
@@ -870,7 +870,7 @@ cdef class fq_default_poly(flint_poly):
870870
if other is NotImplemented:
871871
return NotImplemented
872872

873-
res = self.ctx.new_ctype_poly()
873+
res = self.ctx.new_ctype_poly()
874874
fq_default_poly_rem(
875875
res.val, (<fq_default_poly>other).val, self.val, self.ctx.field.val
876876
)

0 commit comments

Comments
 (0)