Skip to content

Commit 50fc8d3

Browse files
committed
Derive _RegistryReceiverFetcher from Generic[T]
Because `ReceiverFetcher` is a `Protocol` type, `_RegistryReceiverFetcher` will fit as a `ReceiverFetcher` without having to derive from it. Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 8d6edef commit 50fc8d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/actor/_channel_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def _close_channel(self, key: str) -> None:
8484
T = typing.TypeVar("T")
8585

8686

87-
class _RegistryReceiverFetcher(ReceiverFetcher[T]):
87+
class _RegistryReceiverFetcher(typing.Generic[T]):
8888
"""A receiver fetcher that is bound to a channel registry and a key."""
8989

9090
def __init__(

0 commit comments

Comments
 (0)