Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
a32de359
"src/git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "61527856bce04e3f7eea7fc2bf434b43565775e6"
Unverified
Commit
a32de359
authored
Nov 30, 2021
by
James Lamb
Committed by
GitHub
Dec 01, 2021
Browse files
[python-package] fix mypy errors in `compat.py` and `setup.py` (#4836)
parent
4072e9f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
python-package/lightgbm/compat.py
python-package/lightgbm/compat.py
+1
-1
python-package/setup.py
python-package/setup.py
+1
-1
No files found.
python-package/lightgbm/compat.py
View file @
a32de359
...
@@ -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
):
...
...
python-package/setup.py
View file @
a32de359
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment