Skip to content

Commit ab9fa25

Browse files
committed
Rename _Map to _Mapper
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 8cd34e3 commit ab9fa25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frequenz/channels/_receiver.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def map(self, call: Callable[[_T_co], _U_co]) -> Receiver[_U_co]:
240240
Returns:
241241
A new receiver that applies the function on the received values.
242242
"""
243-
return _Map(self, call)
243+
return _Mapper(self, call)
244244

245245

246246
class ReceiverError(Error, Generic[_T_co]):
@@ -275,7 +275,7 @@ def __init__(self, receiver: Receiver[_T_co]):
275275
super().__init__(f"Receiver {receiver} was stopped", receiver)
276276

277277

278-
class _Map(Receiver[_U_co], Generic[_T_co, _U_co]):
278+
class _Mapper(Receiver[_U_co], Generic[_T_co, _U_co]):
279279
"""Apply a transform function on a channel receiver.
280280
281281
Has two generic types:

0 commit comments

Comments
 (0)