Skip to content

Commit b7222ed

Browse files
committed
Make the mapping_function to Receiver.map() positional-only
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 530fe9a commit b7222ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/channels/_receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ async def receive(self) -> _T_co:
225225
raise ReceiverStoppedError(self) from exc
226226
return received
227227

228-
def map(self, mapping_function: Callable[[_T_co], _U_co]) -> Receiver[_U_co]:
228+
def map(self, mapping_function: Callable[[_T_co], _U_co], /) -> Receiver[_U_co]:
229229
"""Apply a mapping function on the received message.
230230
231231
Tip:

0 commit comments

Comments
 (0)