@@ -111,7 +111,9 @@ def r_package_predicate(package: str) -> bool:
111111 return not excluded_package_predicate (package ) and package .startswith ("r-" )
112112
113113
114- def _check_import_package (package_helper : CondaPackageHelper , command : list [str ]):
114+ def _check_import_package (
115+ package_helper : CondaPackageHelper , command : list [str ]
116+ ) -> None :
115117 """Generic function executing a command"""
116118 LOGGER .debug (f"Trying to import a package with [{ command } ] ..." )
117119 exec_result = package_helper .running_container .exec_run (command )
@@ -120,12 +122,14 @@ def _check_import_package(package_helper: CondaPackageHelper, command: list[str]
120122 ), f"Import package failed, output: { exec_result .output } "
121123
122124
123- def check_import_python_package (package_helper : CondaPackageHelper , package : str ):
125+ def check_import_python_package (
126+ package_helper : CondaPackageHelper , package : str
127+ ) -> None :
124128 """Try to import a Python package from the command line"""
125129 _check_import_package (package_helper , ["python" , "-c" , f"import { package } " ])
126130
127131
128- def check_import_r_package (package_helper : CondaPackageHelper , package : str ):
132+ def check_import_r_package (package_helper : CondaPackageHelper , package : str ) -> None :
129133 """Try to import a R package from the command line"""
130134 _check_import_package (package_helper , ["R" , "--slave" , "-e" , f"library({ package } )" ])
131135
0 commit comments