Skip to content

Commit add104e

Browse files
committed
suggested details
1 parent 6f4def9 commit add104e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/topology/delta_complex.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def subcomplex(self, data):
466466
sub._is_subcomplex_of = {self: new_data}
467467
return sub
468468

469-
def __hash__(self):
469+
def __hash__(self) -> int:
470470
r"""
471471
TESTS::
472472
@@ -477,7 +477,7 @@ def __hash__(self):
477477
"""
478478
return hash(frozenset(self._cells_dict.items()))
479479

480-
def __eq__(self, right):
480+
def __eq__(self, right) -> bool:
481481
r"""
482482
Two `\Delta`-complexes are equal, according to this, if they have
483483
the same ``_cells_dict``.
@@ -494,7 +494,7 @@ def __eq__(self, right):
494494
"""
495495
return self._cells_dict == right._cells_dict
496496

497-
def __ne__(self, other):
497+
def __ne__(self, other) -> bool:
498498
r"""
499499
Return ``True`` if ``self`` and ``other`` are not equal.
500500
@@ -1464,7 +1464,7 @@ def face_poset(self):
14641464
# store each n-simplex as a pair (n, idx).
14651465
for n in range(dim, 0, -1):
14661466
for idx, s in enumerate(self.n_cells(n)):
1467-
covers[(n, idx)] = list({(n - 1, i) for i in s})
1467+
covers[(n, idx)] = [(n - 1, i) for i in set(s)]
14681468
# deal with vertices separately: they have no covers (in the
14691469
# dual poset).
14701470
for idx, s in enumerate(self.n_cells(0)):

0 commit comments

Comments
 (0)