Skip to content

Commit e12041c

Browse files
committed
suggested fixes
1 parent bb90bf0 commit e12041c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/sage/modular/cusps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def __neg__(self):
467467
return Cusp(-self.__a, self.__b)
468468

469469
def is_gamma0_equiv(self, other, N,
470-
transformation=None) -> tuple[bool, Any]:
470+
transformation=None) -> bool | tuple[bool, Any]:
471471
r"""
472472
Return whether ``self`` and ``other`` are equivalent modulo the action of
473473
`\Gamma_0(N)` via linear fractional transformations.

src/sage/modular/cusps_nf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@
7272
# Distributed under the terms of the GNU General Public License (GPL)
7373
# https://www.gnu.org/licenses/
7474
# ****************************************************************************
75+
from typing import Any
7576

77+
from sage.misc.cachefunc import cached_method, cached_function
7678
from sage.structure.parent import Parent
7779
from sage.structure.element import Element, InfinityElement
7880
from sage.structure.richcmp import richcmp, rich_to_bool
7981
from sage.structure.unique_representation import UniqueRepresentation
8082

81-
from sage.misc.cachefunc import cached_method, cached_function
82-
8383

8484
@cached_function
8585
def list_of_representatives(N):
@@ -901,7 +901,8 @@ def ABmatrix(self):
901901

902902
return ABM
903903

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]:
905906
r"""
906907
Check if cusps ``self`` and ``other`` are `\Gamma_0(N)`- equivalent.
907908

0 commit comments

Comments
 (0)