提交 1a0a33eb 编写于 作者: L Lukáš Doktor

avocado: Avoid incorrect cross-reference

The type `list` is mapped to our internal functions by default, although
often it should mean the builtin list type. Change the docstring to
builtin.list to avoid those warnings.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 d4ec6eba
......@@ -136,7 +136,7 @@ class TestLoaderProxy(object):
Discover (possible) tests from test urls.
:param urls: a list of tests urls; if [] use plugin defaults
:type urls: list
:type urls: builtin.list
:param list_tests: Limit tests to be displayed (loader.ALL|DEFAULT...)
:return: A list of test factories (tuples (TestClass, test_params))
"""
......
......@@ -541,7 +541,7 @@ class GDB(object):
:param args: the arguments to be passed to the binary as command line
arguments
:type args: list
:type args: builtin.list
:returns: a :class:`CommandResult` instance
:rtype: :class:`CommandResult`
"""
......
......@@ -141,7 +141,7 @@ def read_all_lines(filename):
:type filename: str
:return: all lines of the file as list
:rtype: list
:rtype: builtin.list
"""
contents = []
try:
......
......@@ -92,7 +92,7 @@ def get_submodules(module_name):
:param module_name: Name of module to search for
:type module_name: str
:return: List of the submodules
:rtype: list
:rtype: builtin.list
"""
module_info = loaded_module_info(module_name)
module_list = []
......
......@@ -255,7 +255,7 @@ def sys_v_init_command_generator(command):
:param command: start,stop,restart, etc.
:type command: str
:return: list of commands to pass to process.run or similar function
:rtype: list
:rtype: builtin.list
"""
command_name = "service"
if command == "is_enabled":
......@@ -299,7 +299,7 @@ def systemd_command_generator(command):
:type command: str
:return: List of command and arguments to pass to process.run or similar
functions
:rtype: list
:rtype: builtin.list
"""
command_name = "systemctl"
if command == "is_enabled":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册