Skip to content

Commit c9a825a

Browse files
committed
details as suggested
1 parent c6a2f07 commit c9a825a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/homology/homology_morphism.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ def __eq__(self, other) -> bool:
319319
False
320320
"""
321321
if (self._map.domain() != other._map.domain()
322-
or self._map.codomain() != other._map.codomain()
323-
or self.base_ring() != other.base_ring()
322+
or self._map.codomain() != other._map.codomain()
323+
or self.base_ring() != other.base_ring()
324324
or self._cohomology != other._cohomology):
325325
return False
326326
dim = min(self._map.domain().dimension(), self._map.codomain().dimension())
@@ -345,7 +345,7 @@ def is_identity(self) -> bool:
345345
"""
346346
return self.to_matrix().is_one()
347347

348-
def is_surjective(self):
348+
def is_surjective(self) -> bool:
349349
"""
350350
Return ``True`` if this map is surjective on (co)homology.
351351
@@ -363,7 +363,7 @@ def is_surjective(self):
363363
m = self.to_matrix()
364364
return m.rank() == m.nrows()
365365

366-
def is_injective(self):
366+
def is_injective(self) -> bool:
367367
"""
368368
Return ``True`` if this map is injective on (co)homology.
369369

0 commit comments

Comments
 (0)