File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ def __neg__(self):
467
467
return Cusp (- self .__a , self .__b )
468
468
469
469
def is_gamma0_equiv (self , other , N ,
470
- transformation = None ) -> tuple [bool , Any ]:
470
+ transformation = None ) -> bool | tuple [bool , Any ]:
471
471
r"""
472
472
Return whether ``self`` and ``other`` are equivalent modulo the action of
473
473
`\Gamma_0(N)` via linear fractional transformations.
Original file line number Diff line number Diff line change 72
72
# Distributed under the terms of the GNU General Public License (GPL)
73
73
# https://www.gnu.org/licenses/
74
74
# ****************************************************************************
75
+ from typing import Any
75
76
77
+ from sage .misc .cachefunc import cached_method , cached_function
76
78
from sage .structure .parent import Parent
77
79
from sage .structure .element import Element , InfinityElement
78
80
from sage .structure .richcmp import richcmp , rich_to_bool
79
81
from sage .structure .unique_representation import UniqueRepresentation
80
82
81
- from sage .misc .cachefunc import cached_method , cached_function
82
-
83
83
84
84
@cached_function
85
85
def list_of_representatives (N ):
@@ -901,7 +901,8 @@ def ABmatrix(self):
901
901
902
902
return ABM
903
903
904
- def is_Gamma0_equivalent (self , other , N , Transformation = False ) -> bool :
904
+ def is_Gamma0_equivalent (self , other , N ,
905
+ Transformation = False ) -> bool | tuple [bool , Any ]:
905
906
r"""
906
907
Check if cusps ``self`` and ``other`` are `\Gamma_0(N)`- equivalent.
907
908
You can’t perform that action at this time.
0 commit comments