"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "61527856bce04e3f7eea7fc2bf434b43565775e6"
Unverified Commit a32de359 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] fix mypy errors in `compat.py` and `setup.py` (#4836)

parent 4072e9f7
...@@ -27,7 +27,7 @@ except ImportError: ...@@ -27,7 +27,7 @@ except ImportError:
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
pass pass
class pd_CategoricalDtype: class pd_CategoricalDtype: # type: ignore
"""Dummy class for pandas.CategoricalDtype.""" """Dummy class for pandas.CategoricalDtype."""
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
......
...@@ -40,7 +40,7 @@ def find_lib() -> List[str]: ...@@ -40,7 +40,7 @@ def find_lib() -> List[str]:
libpath = {'__file__': libpath_py} libpath = {'__file__': libpath_py}
exec(compile(libpath_py.read_bytes(), libpath_py, 'exec'), libpath, libpath) exec(compile(libpath_py.read_bytes(), libpath_py, 'exec'), libpath, libpath)
LIB_PATH = libpath['find_lib_path']() LIB_PATH = libpath['find_lib_path']() # type: ignore
logger.info(f"Installing lib_lightgbm from: {LIB_PATH}") logger.info(f"Installing lib_lightgbm from: {LIB_PATH}")
return LIB_PATH return LIB_PATH
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment