From 1d2d82d8e4f0ad21ffce37114360fea189b3c95f Mon Sep 17 00:00:00 2001 From: Rakshit Date: Tue, 12 Oct 2021 16:04:30 +0530 Subject: [PATCH] fix mypy error in setup.py --- python-package/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-package/setup.py b/python-package/setup.py index 0570d06c1ac0..e204f382c763 100644 --- a/python-package/setup.py +++ b/python-package/setup.py @@ -61,10 +61,10 @@ def copy_files_helper(folder_name: Union[str, Path]) -> None: copy_files_helper('include') copy_files_helper('src') for submodule in (CURRENT_DIR.parent / 'external_libs').iterdir(): - submodule = submodule.stem - if submodule == 'compute' and not use_gpu: + submodule_stem = submodule.stem + if submodule_stem == 'compute' and not use_gpu: continue - copy_files_helper(Path('external_libs') / submodule) + copy_files_helper(Path('external_libs') / submodule_stem) (CURRENT_DIR / "compile" / "windows").mkdir(parents=True, exist_ok=True) copyfile(CURRENT_DIR.parent / "windows" / "LightGBM.sln", CURRENT_DIR / "compile" / "windows" / "LightGBM.sln")