diff --git a/jupyter_client/session.py b/jupyter_client/session.py index c387cd06..83a46ca6 100644 --- a/jupyter_client/session.py +++ b/jupyter_client/session.py @@ -810,10 +810,6 @@ def send( # ZMQStreams and dummy sockets do not support tracking. track = False - if isinstance(stream, zmq.asyncio.Socket): - assert stream is not None # type:ignore[unreachable] - stream = zmq.Socket.shadow(stream.underlying) - if isinstance(msg_or_type, (Message, dict)): # We got a Message or message dict, not a msg_type so don't # build a new Message.