diff --git a/distributed/protocol/serialize.py b/distributed/protocol/serialize.py index e59b7f28839..10749f95a50 100644 --- a/distributed/protocol/serialize.py +++ b/distributed/protocol/serialize.py @@ -556,7 +556,7 @@ def normalize_Serialized(o): # Teach serialize how to handle bytestrings -@dask_serialize.register((bytes, bytearray, memoryview)) +@dask_serialize.register((bytes, bytearray)) def _serialize_bytes(obj): header = {} # no special metadata frames = [obj]