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
125ca033
Unverified
Commit
125ca033
authored
Mar 14, 2023
by
James Lamb
Committed by
GitHub
Mar 14, 2023
Browse files
[python-package] fix mypy error about dask._HostWorkers.__eq__() (#5782)
parent
cbb9f4e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
python-package/lightgbm/dask.py
python-package/lightgbm/dask.py
+3
-2
No files found.
python-package/lightgbm/dask.py
View file @
125ca033
...
...
@@ -44,9 +44,10 @@ class _HostWorkers:
self
.
default
=
default
self
.
all_workers
=
all_workers
def
__eq__
(
self
,
other
:
"_HostWorkers"
)
->
bool
:
def
__eq__
(
self
,
other
:
object
)
->
bool
:
return
(
self
.
default
==
other
.
default
isinstance
(
other
,
type
(
self
))
and
self
.
default
==
other
.
default
and
self
.
all_workers
==
other
.
all_workers
)
...
...
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