Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/misc: Fix some errors shown by tox -e rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 12, 2022
1 parent 438d08b commit 16c8046
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sage/misc/abstract_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __repr__(self):
return "<" + ("optional " if self._optional else "") + "abstract method %s at %s>" % (self.__name__, hex(id(self._f)))

def _sage_src_lines_(self):
"""
r"""
Returns the source code location for the wrapped function.
EXAMPLES::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/inline_fortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _import_module_from_path(name, path=None):


def _import_module_from_path_impl(name, path):
"""Implement ``_import_module_from_path for Python 3.4+."""
"""Implement ``_import_module_from_path`` for Python 3.4+."""

# This is remarkably tricky to do right, considering that the new
# importlib is supposed to make direct interaction with the import
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/sageinspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def visit_UnaryOp(self, node):


def _grep_first_pair_of_parentheses(s):
"""
r"""
Return the first matching pair of parentheses in a code string.
INPUT:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/superseded.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def __init__(self, trac_number, func, module, instance=None, unbound=None):

@lazy_attribute
def __name__(self):
"""
r"""
TESTS::
sage: from sage.misc.superseded import deprecated_function_alias
Expand Down
2 changes: 1 addition & 1 deletion src/sage/misc/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def _set(self, app=None, TYPE='browser'):
- ``app`` -- ``None`` or a string, the program to use
- ``TYPE`` -- a string, must be in the list ``VIEWERS`` defined in
:module:`sage.misc.viewer`. Default 'browser'.
:mod:`sage.misc.viewer`. Default 'browser'.
EXAMPLES::
Expand Down

0 comments on commit 16c8046

Please sign in to comment.