From 1a0a33eb878ba228232572746306cef96869b101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Fri, 31 Jul 2015 13:04:57 +0200 Subject: [PATCH] avocado: Avoid incorrect cross-reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Lukáš Doktor --- avocado/core/loader.py | 2 +- avocado/utils/gdb.py | 2 +- avocado/utils/genio.py | 2 +- avocado/utils/linux_modules.py | 2 +- avocado/utils/service.py | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/avocado/core/loader.py b/avocado/core/loader.py index 94968838..49603bc0 100644 --- a/avocado/core/loader.py +++ b/avocado/core/loader.py @@ -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)) """ diff --git a/avocado/utils/gdb.py b/avocado/utils/gdb.py index 5fb1ceda..959b2ceb 100644 --- a/avocado/utils/gdb.py +++ b/avocado/utils/gdb.py @@ -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` """ diff --git a/avocado/utils/genio.py b/avocado/utils/genio.py index 0e88863c..11dd14a1 100644 --- a/avocado/utils/genio.py +++ b/avocado/utils/genio.py @@ -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: diff --git a/avocado/utils/linux_modules.py b/avocado/utils/linux_modules.py index d9c2c9c4..116f8d55 100644 --- a/avocado/utils/linux_modules.py +++ b/avocado/utils/linux_modules.py @@ -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 = [] diff --git a/avocado/utils/service.py b/avocado/utils/service.py index 1c75f233..ad45af81 100644 --- a/avocado/utils/service.py +++ b/avocado/utils/service.py @@ -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": -- GitLab