"vscode:/vscode.git/clone" did not exist on "bbcd5f4d6d85fe66488764efd319741e16411e15"
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:
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
)
......
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