From 6ac4357cf451478bad1103bd2bbe516806ad1a5e Mon Sep 17 00:00:00 2001 From: mateuslatrova Date: Mon, 18 Sep 2023 17:38:34 -0300 Subject: [PATCH] fix return type on docs --- pipreqs/pipreqs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index a0e9bee..a84f39b 100644 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -315,7 +315,7 @@ def parse_requirements(file_): OSerror: If there's any issues accessing the file. Returns: - tuple: The contents of the file, excluding comments. + list: The contents of the file, excluding comments. """ modules = [] # For the dependency identifier specification, see @@ -353,7 +353,6 @@ def parse_requirements(file_): return modules - def compare_modules(file_, imports): """Compare modules in a file to imported modules in a project. @@ -362,8 +361,8 @@ def compare_modules(file_, imports): imports (tuple): Modules being imported in the project. Returns: - tuple: The modules not imported in the project, but do exist in the - specified file. + set: The modules not imported in the project, but do exist in the + specified file. """ modules = parse_requirements(file_)