Skip to content

Commit

Permalink
remove empty line + add typing annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Sep 29, 2024
1 parent 1480abb commit 576784f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/sage/rings/multi_power_series_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def ngens(self):
"""
return self._ngens

def gens(self):
def gens(self) -> tuple:
"""
Return the generators of this ring.
Expand All @@ -1030,7 +1030,6 @@ def gens(self):
sage: M.gens()
(v0, v1, v2)
"""

return tuple(self.gen(i) for i in range(self._ngens))

def prec_ideal(self):
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/power_series_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ def gen(self, n=0):
raise IndexError("generator n>0 not defined")
return self.__generator

def gens(self):
def gens(self) -> tuple:
"""
Return the generators of this ring.
Expand Down

0 comments on commit 576784f

Please sign in to comment.