From 1e4a24c47443ebd0cae611858f83fa20117bb78c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 12 Jan 2017 11:13:17 +0000 Subject: [PATCH] [Docs] Fix docstring return type format in config.py * With new version of Sphinx 1.5 the warning below was generated, caused by incorrect formatting of return type in docstring. docstring of deluge.config.find_json_objects:None: WARNING: more than one target found for cross-reference u'start' --- deluge/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/config.py b/deluge/config.py index ae96201ca..dd3d46dd0 100644 --- a/deluge/config.py +++ b/deluge/config.py @@ -76,8 +76,8 @@ def find_json_objects(s): s (str): the string to find json objects in Returns: - list ([(start, end), ...]): a list of tuples containing start and - end locations of json objects in the string `s` + list: A list of tuples containing start and end locations of json + objects in string `s`. e.g. [(start, end), ...] """ objects = []