Unverified Commit 125ca033 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] fix mypy error about dask._HostWorkers.__eq__() (#5782)

parent cbb9f4e7
...@@ -44,9 +44,10 @@ class _HostWorkers: ...@@ -44,9 +44,10 @@ class _HostWorkers:
self.default = default self.default = default
self.all_workers = all_workers self.all_workers = all_workers
def __eq__(self, other: "_HostWorkers") -> bool: def __eq__(self, other: object) -> bool:
return ( return (
self.default == other.default isinstance(other, type(self))
and self.default == other.default
and self.all_workers == other.all_workers and self.all_workers == other.all_workers
) )
......
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