Skip to content

Commit 65cad1c

Browse files
author
Xavier Caruso
committed
remove coercion
1 parent f8b945c commit 65cad1c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/sage/modules/free_module_pseudomorphism.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# ****************************************************************************
2323

2424
from sage.categories.morphism import Morphism
25-
from sage.structure.richcmp import rich_to_bool, richcmp
25+
from sage.structure.richcmp import richcmp
2626
from sage.modules.free_module_morphism import FreeModuleMorphism
2727

2828

@@ -505,12 +505,6 @@ def _richcmp_(self, other, op):
505505
...
506506
TypeError: unsupported operand parent(s) for <: 'Set of Pseudoendomorphisms (twisted by z |--> z^7) of Vector space of dimension 2 over Finite Field in z of size 7^3' and '<class 'sage.modules.free_module.FreeModule_ambient_field_with_category'>'
507507
"""
508-
parent = self.parent()
509-
if other.parent() is not parent:
510-
try:
511-
other = parent(other)
512-
except ValueError:
513-
return NotImplemented
514508
return richcmp(self._matrix, other._matrix, op)
515509

516510
def ore_module(self, names=None):

0 commit comments

Comments
 (0)