Skip to content

Commit

Permalink
Trac #34466: fix various linter errors
Browse files Browse the repository at this point in the history
This should make the linters on GitHub happy.

URL: https://trac.sagemath.org/34466
Reported by: lorenz
Ticket author(s): Lorenz Panny
Reviewer(s): Frédéric Chapoton
  • Loading branch information
Release Manager committed Sep 19, 2022
2 parents 5d89d36 + 1b47457 commit cba244e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/algebras/clifford_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2984,7 +2984,7 @@ def groebner_basis(self, term_order=None, reduced=True):
from sage.algebras.exterior_algebra_groebner import GroebnerStrategyDegLex as strategy
else:
raise ValueError("invalid term order")
if strategy == type(self._groebner_strategy):
if isinstance(self._groebner_strategy, strategy):
if self._reduced or not reduced:
return self._groebner_strategy.groebner_basis
self._reduced = reduced
Expand Down
6 changes: 3 additions & 3 deletions src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def _tietze_to_finite_sub_basis_monomial(self, tietze_tup):
def _create_matrix_list_for_one(self, representation_type):
r"""
Return the matrix list for the given representation type
for ``self.one()`.
for ``self.one()``.
EXAMPLES::
Expand Down Expand Up @@ -2366,8 +2366,8 @@ def _reduce_all_gen_powers(self, braid_tietze):
@cached_method
def _reduce_gen_power(self, k):
r"""
Return the ``k``-th power on an arbitrary generator,
for example ``c0^k` .
Return the `k`-th power on an arbitrary generator,
for example `c_0^k`.
INPUT:
Expand Down
1 change: 1 addition & 0 deletions src/sage/groups/cubic_braid.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ def _test_matrix_group(self, **options):
- Construction of matrix group was faithful.
- Coercion maps to and from matrix group exist and are
inverse to each other.
EXAMPLES::
sage: CBG2 = CubicBraidGroup(2)
Expand Down
3 changes: 3 additions & 0 deletions src/sage/schemes/elliptic_curves/hom_velusqrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,14 @@ def prod_with_derivative(pairs):
class _aux:
def __init__(self, f, df):
self.f, self.df = f, df

def __mul__(self, other):
return _aux(self.f * other.f, self.df * other.f + self.f * other.df)

def __iter__(self):
yield self.f
yield self.df

return tuple(prod(_aux(*tup) for tup in pairs))


Expand Down

0 comments on commit cba244e

Please sign in to comment.