Skip to content

Commit 2643ec3

Browse files
committed
suggested details
1 parent cce6edf commit 2643ec3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sage/interfaces/singular.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,14 +2149,16 @@ def sage_structured_str_list(self):
21492149
sage: RL.sage_structured_str_list()
21502150
['0', ['x', 'y'], [['dp', '1,\n1'], ['C', '0']], '0']
21512151
"""
2152-
if not (self.type() == 'list'):
2152+
if self.type() != 'list':
21532153
return str(self)
21542154
return [X.sage_structured_str_list() for X in self]
21552155

2156-
def _tab_completion(self):
2156+
def _tab_completion(self) -> list:
21572157
"""
2158-
Return the possible tab-completions for self. In this case, we
2159-
just return all the tab completions for the Singular object.
2158+
Return the possible tab-completions for ``self``.
2159+
2160+
In this case, we just return all the :kbd:`Tab` completions
2161+
for the Singular object.
21602162
21612163
EXAMPLES::
21622164

0 commit comments

Comments
 (0)