Skip to content

Commit 617db3c

Browse files
committed
fixing the 7 last E222 warnings
1 parent 7450309 commit 617db3c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/sage/algebras/cluster_algebra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def theta_basis_decomposition(self):
613613
y_exp = min(f_poly.dict())
614614
coeff = f_poly.dict()[y_exp]
615615
g_theta = tuple(g_vect + B*vector(y_exp))
616-
out[g_theta] = out.get(g_theta, zero_A) + A({zero_t + tuple(y_exp):coeff})
616+
out[g_theta] = out.get(g_theta, zero_A) + A({zero_t + tuple(y_exp):coeff})
617617
f_poly -= U({y_exp:coeff}) * A.theta_basis_F_polynomial(g_theta)
618618

619619
return out

src/sage/groups/finitely_presented_named.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def DiCyclicPresentation(n):
381381
raise ValueError('input integer must be greater than 1')
382382

383383
F = FreeGroup(['a','b'])
384-
rls = F([1])**(2*n), F([2,2])*F([-1])**n, F([-2,1,2,1])
384+
rls = F([1])**(2*n), F([2,2])*F([-1])**n, F([-2,1,2,1])
385385
return FinitelyPresentedGroup(F, rls)
386386

387387
def SymmetricPresentation(n):

src/sage/numerical/interactive_simplex_method.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4510,7 +4510,7 @@ def __init__(self, problem, basic_variables):
45104510
"for auxiliary problems")
45114511
super().__init__()
45124512
self._problem = problem
4513-
R = problem.coordinate_ring()
4513+
R = problem.coordinate_ring()
45144514
self._x_B = vector(R, [variable(R, v) for v in basic_variables])
45154515

45164516
def __eq__(self, other):
@@ -4611,7 +4611,7 @@ def _latex_(self):
46114611
headers.append("B^{-1} A_{%s}" % latex(entering))
46124612
if show_ratios:
46134613
headers.append(r"\hbox{Ratio}")
4614-
lines.append(" & ".join(headers) + r" \\")
4614+
lines.append(" & ".join(headers) + r" \\")
46154615
lines.append(r"\hline")
46164616
Bi = self.B_inverse()
46174617
c_B = self.c_B()

src/sage/structure/factorization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def _repr_(self):
815815
if len(self) == 0:
816816
return repr(self.__unit)
817817
s = ''
818-
mul = ' * '
818+
mul = ' * '
819819
if cr:
820820
mul += '\n'
821821
x = self.__x[0][0]
@@ -846,7 +846,7 @@ def _repr_(self):
846846
u = repr(self.__unit)
847847
else:
848848
u = '(%s)'%self.__unit
849-
s = u + mul + s
849+
s = u + mul + s
850850
return s
851851

852852
def _latex_(self):
@@ -887,7 +887,7 @@ def _latex_(self):
887887
u = self.__unit._latex_()
888888
else:
889889
u = '\\left(%s\\right)'%self.__unit._latex_()
890-
s = u + ' \\cdot ' + s
890+
s = u + ' \\cdot ' + s
891891
return s
892892

893893
@cached_method

0 commit comments

Comments
 (0)