Skip to content

Commit 84a034e

Browse files
committed
ruff E252
1 parent 55bef28 commit 84a034e

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

src/sage/rings/function_field/differential.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ def residue(self, place):
488488
c = g_shifted.higher_derivative(-r - 1, s)
489489
return to_R(c)
490490

491-
def monomial_coefficients(self, copy: bool=True):
491+
def monomial_coefficients(self, copy: bool = True):
492492
"""
493493
Return a dictionary whose keys are indices of basis elements in the
494494
support of ``self`` and whose values are the corresponding coefficients.

src/sage/rings/function_field/divisor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def _format(self, formatter, mul, cr):
229229
r += cr + minus + formatter(-m) + mul + formatter(p)
230230
return r
231231

232-
def _repr_(self, split: bool=True) -> str:
232+
def _repr_(self, split: bool = True) -> str:
233233
"""
234234
Return a string representation of the divisor.
235235

src/sage/rings/function_field/function_field.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def extension(self, f, names=None):
471471
from . import constructor
472472
return constructor.FunctionFieldExtension(f, names)
473473

474-
def order_with_basis(self, basis, check: bool=True):
474+
def order_with_basis(self, basis, check: bool = True):
475475
"""
476476
Return the order with given basis over the maximal order of
477477
the base field.
@@ -519,7 +519,7 @@ def order_with_basis(self, basis, check: bool=True):
519519
from .order_basis import FunctionFieldOrder_basis
520520
return FunctionFieldOrder_basis(tuple([self(a) for a in basis]), check=check)
521521

522-
def order(self, x, check: bool=True):
522+
def order(self, x, check: bool = True):
523523
"""
524524
Return the order generated by ``x`` over the base maximal order.
525525
@@ -562,7 +562,7 @@ def order(self, x, check: bool=True):
562562
raise NotImplementedError
563563
return self.order_with_basis(basis, check=check)
564564

565-
def order_infinite_with_basis(self, basis, check: bool=True):
565+
def order_infinite_with_basis(self, basis, check: bool = True):
566566
"""
567567
Return the order with given basis over the maximal infinite order of
568568
the base field.
@@ -612,7 +612,7 @@ def order_infinite_with_basis(self, basis, check: bool=True):
612612
from .order_basis import FunctionFieldOrderInfinite_basis
613613
return FunctionFieldOrderInfinite_basis(tuple([self(g) for g in basis]), check=check)
614614

615-
def order_infinite(self, x, check: bool=True):
615+
def order_infinite(self, x, check: bool = True):
616616
"""
617617
Return the order generated by ``x`` over the maximal infinite order.
618618

src/sage/rings/function_field/function_field_polymod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ def polynomial_ring(self):
696696
return self._ring
697697

698698
@cached_method(key=lambda self, base, basis, map: (self.base_field() if base is None else base, basis, map))
699-
def free_module(self, base=None, basis=None, map: bool=True):
699+
def free_module(self, base=None, basis=None, map: bool = True):
700700
"""
701701
Return a vector space and isomorphisms from the field to and from the
702702
vector space.

src/sage/rings/function_field/function_field_rational.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def polynomial_ring(self, var='x'):
482482
return self[var]
483483

484484
@cached_method(key=lambda self, base, basis, map: map)
485-
def free_module(self, base=None, basis=None, map: bool=True):
485+
def free_module(self, base=None, basis=None, map: bool = True):
486486
"""
487487
Return a vector space `V` and isomorphisms from the field to `V` and
488488
from `V` to the field.

src/sage/rings/function_field/order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(self, field, ideal_class=FunctionFieldIdeal, category=None) -> None
148148
self._ideal_class_ = ideal_class # element class for parent ideal monoid
149149
self._field = field
150150

151-
def is_field(self, proof: bool=True) -> bool:
151+
def is_field(self, proof: bool = True) -> bool:
152152
"""
153153
Return ``False`` since orders are never fields.
154154

src/sage/rings/function_field/order_basis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class FunctionFieldOrder_basis(FunctionFieldOrder):
6767
...
6868
ValueError: basis (y, y, y^3, y^4, 2*x*y + (x^4 + 1)/x) is not linearly independent
6969
"""
70-
def __init__(self, basis, check: bool=True) -> None:
70+
def __init__(self, basis, check: bool = True) -> None:
7171
"""
7272
Initialize.
7373
@@ -361,7 +361,7 @@ class FunctionFieldOrderInfinite_basis(FunctionFieldOrderInfinite):
361361
sage: O.basis()
362362
(1/x*y + 1, 1/x*y, 1/x^2*y^2, 1/x^3*y^3)
363363
"""
364-
def __init__(self, basis, check: bool=True) -> None:
364+
def __init__(self, basis, check: bool = True) -> None:
365365
"""
366366
Initialize.
367367

src/sage/rings/function_field/order_polymod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _ideal_from_vectors(self, vecs):
237237
vecs = [[(d * c).numerator() for c in v] for v in vecs]
238238
return self._ideal_from_vectors_and_denominator(vecs, d, check=False)
239239

240-
def _ideal_from_vectors_and_denominator(self, vecs, d=1, check: bool=True):
240+
def _ideal_from_vectors_and_denominator(self, vecs, d=1, check: bool = True):
241241
"""
242242
Return an ideal generated as a module by vectors divided by ``d`` over
243243
the polynomial ring underlying the rational function field.

src/sage/rings/function_field/valuation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def restriction(self, ring):
874874
return self._base_valuation.restriction(ring)
875875
return super().restriction(ring)
876876

877-
def simplify(self, f, error=None, force: bool=False):
877+
def simplify(self, f, error=None, force: bool = False):
878878
r"""
879879
Return a simplified version of ``f``.
880880

0 commit comments

Comments
 (0)