Skip to content

Commit 9546d90

Browse files
author
Release Manager
committed
gh-36147: Fixing many e305 This is fixing many `E305` warnings in `py` files `E305 expected 2 blank lines after class or function definition, found 1` ### 📝 Checklist - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. URL: #36147 Reported by: Frédéric Chapoton Reviewer(s): Kwankyu Lee
2 parents d6b045f + 025b4ab commit 9546d90

File tree

91 files changed

+162
-23
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+162
-23
lines changed

src/sage/algebras/free_algebra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def create_object(self, version, key):
331331
return FreeAlgebra_letterplace(key[1], degrees=key[0])
332332
return FreeAlgebra_generic(key[0], len(key[1]), key[1])
333333

334+
334335
FreeAlgebra = FreeAlgebraFactory('FreeAlgebra')
335336

336337

src/sage/algebras/group_algebra.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,6 @@ def _coerce_map_from_(self, S):
223223
return SetMorphism(S.Hom(self, category=self.category() | S.category()),
224224
lambda x: self.sum_of_terms( (hom_G(g), hom_K(c)) for g,c in x ))
225225

226+
226227
from sage.misc.persist import register_unpickle_override
227228
register_unpickle_override('sage.algebras.group_algebras', 'GroupAlgebra', GroupAlgebra_class)

src/sage/categories/cartesian_product.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def base_ring(self):
271271
"""
272272
return self.base_category().base_ring()
273273

274+
274275
# Moved to avoid circular imports
275276
lazy_import('sage.categories.sets_cat', 'cartesian_product')
276277
"""

src/sage/categories/category_with_axiom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,7 @@ def __init__(self, base_category):
25242524
class CategoryWithAxiom_singleton(Category_singleton, CategoryWithAxiom):#, Category_singleton, FastHashable_class):
25252525
pass
25262526

2527+
25272528
"""
25282529
The following workaround is needed until any :class:`CategoryWithAxiom` of a
25292530
:class:`Category_over_base_ring` becomes automatically a

src/sage/categories/examples/algebras_with_basis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,5 @@ def algebra_generators(self):
9797
# for the specifying the order of the elements in the family
9898
#return Family(self._alphabet, lambda a: self.term(self.basis().keys()(a)))
9999

100+
100101
Example = FreeAlgebra

src/sage/categories/examples/commutative_additive_semigroups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,5 @@ def __hash__(self):
194194
"""
195195
return hash(tuple(self.value.items()))
196196

197+
197198
Example = FreeCommutativeAdditiveSemigroup

src/sage/categories/examples/cw_complexes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,5 @@ def dimension(self):
158158
"""
159159
return self._dim
160160

161+
161162
Example = Surface

src/sage/categories/examples/filtered_algebras_with_basis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,5 @@ def product_on_basis(self, s, t):
198198
cur = cur * self.monomial(self._indices.gen(a))
199199
return cur
200200

201+
201202
Example = PBWBasisCrossProduct

src/sage/categories/examples/filtered_modules_with_basis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,5 @@ def _repr_term(self, t):
149149
"""
150150
return 'P' + t._repr_()
151151

152+
152153
Example = FilteredPartitionModule

src/sage/categories/examples/finite_dimensional_algebras_with_basis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,5 @@ def _repr_term(self, p):
143143
"""
144144
return str(p)
145145

146+
146147
Example = KroneckerQuiverPathAlgebra

0 commit comments

Comments
 (0)