Skip to content

Commit

Permalink
comm cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Mar 5, 2022
1 parent a4bc82b commit 434d614
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 1 addition & 3 deletions distributed/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,7 @@ def port(self):
def identity(self) -> dict[str, str]:
return {"type": type(self).__name__, "id": self.id}

def _to_dict(
self, comm: Comm | None = None, *, exclude: Container[str] = ()
) -> dict:
def _to_dict(self, *, exclude: Container[str] = ()) -> dict:
"""Dictionary representation for debugging purposes.
Not type stable and not intended for roundtrips.
Expand Down
5 changes: 1 addition & 4 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
from .active_memory_manager import ActiveMemoryManagerExtension, RetireWorker
from .batched import BatchedSend
from .comm import (
Comm,
get_address_host,
normalize_address,
resolve_address,
Expand Down Expand Up @@ -4053,9 +4052,7 @@ def identity(self):
}
return d

def _to_dict(
self, comm: "Comm | None" = None, *, exclude: "Container[str]" = ()
) -> dict:
def _to_dict(self, *, exclude: "Container[str]" = ()) -> dict:
"""Dictionary representation for debugging purposes.
Not type stable and not intended for roundtrips.
Expand Down
6 changes: 2 additions & 4 deletions distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

from . import comm, preloading, profile, utils
from .batched import BatchedSend
from .comm import Comm, connect, get_address_host
from .comm import connect, get_address_host
from .comm.addressing import address_from_user_args, parse_address
from .comm.utils import OFFLOAD_THRESHOLD
from .core import (
Expand Down Expand Up @@ -1188,9 +1188,7 @@ def identity(self):
"memory_limit": self.memory_manager.memory_limit,
}

def _to_dict(
self, comm: Comm | None = None, *, exclude: Container[str] = ()
) -> dict:
def _to_dict(self, *, exclude: Container[str] = ()) -> dict:
"""Dictionary representation for debugging purposes.
Not type stable and not intended for roundtrips.
Expand Down

0 comments on commit 434d614

Please sign in to comment.