@@ -36,14 +36,14 @@ async def receive(self) -> Optional[T]:
3636 """Receive a message from the channel.
3737
3838 Returns:
39- None, if the channel is closed, a message otherwise.
39+ ` None` , if the channel is closed, a message otherwise.
4040 """
4141
4242 def __aiter__ (self ) -> Receiver [T ]:
4343 """Initialize the async iterator over received values.
4444
4545 Returns:
46- self, since no extra setup is needed for the iterator
46+ ` self` , since no extra setup is needed for the iterator.
4747 """
4848 return self
4949
@@ -69,7 +69,7 @@ def map(self, call: Callable[[T], U]) -> Receiver[U]:
6969 call: function to apply on incoming messages.
7070
7171 Returns:
72- A receiver to read results of the given function from.
72+ A `Receiver` to read results of the given function from.
7373 """
7474 return _Map (self , call )
7575
@@ -123,7 +123,8 @@ def enqueue(self, msg: T) -> None:
123123class _Map (Receiver [U ], Generic [T , U ]):
124124 """Apply a transform function on a channel receiver.
125125
126- Has two generic types -
126+ Has two generic types:
127+
127128 - The input type: value type in the input receiver.
128129 - The output type: return type of the transform method.
129130 """
@@ -143,7 +144,7 @@ async def receive(self) -> Optional[U]:
143144 """Return a transformed message received from the input channel.
144145
145146 Returns:
146- None, if the channel is closed, a message otherwise.
147+ ` None` , if the channel is closed, a message otherwise.
147148 """
148149 msg = await self ._recv .receive ()
149150 if msg is None :
0 commit comments