File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ cdef class DefaultConvertMap_unique(Map):
26
26
used when the element_constructor is a bound method (whose self
27
27
argument is assumed to be bound to the codomain).
28
28
"""
29
- def __init__ (self , domain , codomain , category = None ):
29
+ def __init__ (self , domain , codomain , category = None ) -> None :
30
30
"""
31
31
TESTS:
32
32
@@ -61,7 +61,7 @@ cdef class DefaultConvertMap_unique(Map):
61
61
if (<Parent>codomain)._element_constructor is None:
62
62
raise RuntimeError(f"BUG in coercion model, no element constructor for {type(codomain)}")
63
63
64
- def _repr_type (self ):
64
+ def _repr_type(self) -> str :
65
65
r"""
66
66
Return a printable type for this morphism.
67
67
@@ -102,7 +102,7 @@ cdef class DefaultConvertMap_unique(Map):
102
102
sage: f(2 / 3 , 4 )
103
103
2 / 3 + O(x^ 4 )
104
104
"""
105
- cdef Parent C = self ._codomain
105
+ cdef Parent C = self._codomain
106
106
try:
107
107
if len(args) == 0:
108
108
if len(kwds) == 0:
You can’t perform that action at this time.
0 commit comments