Skip to content

Commit 539da7d

Browse files
committed
spaces in matroids, plot, sets
1 parent 1a277d8 commit 539da7d

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

src/sage/matroids/lean_matrix.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3682,4 +3682,3 @@ cdef class RationalMatrix(LeanMatrix):
36823682
version = 0
36833683
data = (self.nrows(), self.ncols(), entries)
36843684
return unpickle_rational_matrix, (version, data)
3685-

src/sage/matroids/matroid.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7985,8 +7985,8 @@ cdef class Matroid(SageObject):
79857985
for c in LM.chains(exclude=LM.maximal_elements()):
79867986
if c: # the facets of IM are already present
79877987
# get the cardinality of intersection of facet with IM
7988-
r = self.rank() - len(c)
7989-
7988+
r = self.rank() - len(c)
7989+
79907990
# get candidate independent_sets
79917991
for I in self.independent_r_sets(r):
79927992
if I.issubset(c[0]):
@@ -8012,7 +8012,7 @@ cdef class Matroid(SageObject):
80128012
80138013
OUTPUT:
80148014
8015-
An instance of
8015+
An instance of
80168016
:class:`MatroidUnion <sage.matroids.union_matroid.MatroidUnion>`.
80178017
80188018
EXAMPLES::

src/sage/plot/plot3d/transform.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,3 @@ def rotate_arbitrary(v, double theta):
266266
(1 - cos_t)*z*z + cos_t ]
267267

268268
return matrix(RDF, 3, 3, entries)
269-

src/sage/sets/disjoint_set.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,6 @@ cdef class DisjointSet_of_hashables(DisjointSet_class):
887887
{{0}, {1, 2, 3, 4}}
888888
sage: d.to_digraph().edges(sort=True)
889889
[(0, 0, None), (1, 1, None), (2, 1, None), (3, 1, None), (4, 1, None)]
890-
891890
"""
892891
d = {}
893892
for i from 0 <= i < self.cardinality():
@@ -896,4 +895,3 @@ cdef class DisjointSet_of_hashables(DisjointSet_class):
896895
d[e] = [p]
897896
from sage.graphs.graph import DiGraph
898897
return DiGraph(d)
899-

src/sage/sets/disjoint_union_enumerated_sets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,11 @@ def _element_constructor_facade(self, el):
542542
sage: p = X._element_constructor_((0, [])) # indirect doctest
543543
sage: p[1].parent()
544544
Partitions of the integer 0
545-
545+
546546
Test that facade parents can create and properly access elements
547547
that are tuples (fixed by :trac:`22382`)::
548548
549-
sage: f = lambda mu: cartesian_product([mu.standard_tableaux(),
549+
sage: f = lambda mu: cartesian_product([mu.standard_tableaux(),
550550
....: mu.standard_tableaux()])
551551
sage: tabs = DisjointUnionEnumeratedSets(Family(Partitions(4), f))
552552
sage: s = StandardTableau([[1,3],[2,4]])

src/sage/sets/finite_enumerated_set.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __init__(self, elements):
109109
self._elements = elements
110110
Parent.__init__(self, facade=True, category=FiniteEnumeratedSets())
111111

112-
def __bool__(self):
112+
def __bool__(self) -> bool:
113113
r"""
114114
Conversion to boolean.
115115
@@ -122,8 +122,6 @@ def __bool__(self):
122122
"""
123123
return bool(self._elements)
124124

125-
126-
127125
def _repr_(self):
128126
"""
129127
TESTS::

0 commit comments

Comments
 (0)