Skip to content
Snippets Groups Projects
Commit 7788e7bb authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Fix doc building on Python 2.7

parent d90a9dd2
No related branches found
No related tags found
1 merge request!6Fix doc building on Python 2.7
Pipeline #
......@@ -186,10 +186,10 @@ def _detect_multiple_landmarks_on_gray_image(data, top=0, min_quality=0.):
Returns:
list: A list of named tuples of type :py:class:`.utils.Result`, each containing
the result of face detection and landmarks extracted from the input
image.
The list MAY BE EMPTY if no face is detected in the input image (data).
:py:class:`list`: A list of named tuples of type :py:class:`.utils.Result`,
each containing the result of face detection and landmarks extracted from
the input image. The list MAY BE EMPTY if no face is detected in the
input image (data).
'''
......@@ -278,9 +278,9 @@ def _detect_multiple_landmarks_on_color_image(data, top=0, min_quality=0.):
Returns:
list: A list of named tuples of type :py:class:`.utils.Result`, each containing
the result of face detection and landmarks extracted from the input
image.
:py:class:`list`: A list of named tuples of type :py:class:`.utils.Result`,
each containing the result of face detection and landmarks extracted from
the input image.
'''
......@@ -313,9 +313,9 @@ def detect_landmarks(data, top=0, min_quality=0.):
Returns:
list: A list of named tuples of type :py:class:`.utils.Result`, each containing
the result of face detection and landmarks extracted from the input
image.
:py:class:`list`: A list of named tuples of type :py:class:`.utils.Result`,
each containing the result of face detection and landmarks extracted from
the input image.
'''
......@@ -335,9 +335,9 @@ def draw_landmarks(data, results):
dimensions, corresponding to a either a gray-scale or color image loaded
with Bob.
results (list): A list of named tuples of type :py:class:`.utils.Result`, each
containing the result of face detection and landmarks extracted from the
input image.
results (:py:class:`list`): A list of named tuples of type
:py:class:`.utils.Result`, each containing the result of face detection
and landmarks extracted from the input image.
'''
......@@ -395,9 +395,9 @@ def save_landmarks(results, fname):
Parameters:
results (list): A list of named tuples of type :py:class:`.utils.Result`, each
containing the result of face detection and landmarks extracted from the
input image.
results (:py:class:`list`): A list of named tuples of type
:py:class:`.utils.Result`, each containing the result of face detection
and landmarks extracted from the input image.
fname (str): A path with the output filename
......
# Solve some Python 2.7 misses on its documentation
py:class list
py:class collections.namedtuple
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment