Skip to content

Commit

Permalink
Rename _Map to _Mapper
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Mar 5, 2024
1 parent 0ba720f commit 6fbf7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frequenz/channels/_receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def map(self, call: Callable[[_T_co], _U_co]) -> Receiver[_U_co]:
Returns:
A new receiver that applies the function on the received values.
"""
return _Map(self, call)
return _Mapper(self, call)


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


class _Map(Receiver[_U_co], Generic[_T_co, _U_co]):
class _Mapper(Receiver[_U_co], Generic[_T_co, _U_co]):
"""Apply a transform function on a channel receiver.
Has two generic types:
Expand Down

0 comments on commit 6fbf7d2

Please sign in to comment.