@@ -79,10 +79,10 @@ def converted(communicator: kiwipy.Communicator, *args: Any, **kwargs: Any) -> k
7979 return converted
8080
8181
82- T = TypeVar ('T ' , bound = kiwipy .Communicator )
82+ CommT = TypeVar ('CommT ' , bound = kiwipy .Communicator )
8383
8484
85- def wrap_communicator (communicator : T , loop : Optional [asyncio .AbstractEventLoop ] = None ) -> 'LoopCommunicator[T ]' :
85+ def wrap_communicator (communicator : CommT , loop : Optional [asyncio .AbstractEventLoop ] = None ) -> 'LoopCommunicator[CommT ]' :
8686 """
8787 Wrap a communicator such that all callbacks made to any subscribers are scheduled on the
8888 given event loop.
@@ -103,10 +103,10 @@ def wrap_communicator(communicator: T, loop: Optional[asyncio.AbstractEventLoop]
103103
104104
105105@final
106- class LoopCommunicator (Generic [T ], kiwipy .Communicator ): # type: ignore
106+ class LoopCommunicator (Generic [CommT ], kiwipy .Communicator ): # type: ignore
107107 """Wrapper around a `kiwipy.Communicator` that schedules any subscriber messages on a given event loop."""
108108
109- def __init__ (self , communicator : T , loop : Optional [asyncio .AbstractEventLoop ] = None ):
109+ def __init__ (self , communicator : CommT , loop : Optional [asyncio .AbstractEventLoop ] = None ):
110110 """
111111 :param communicator: The kiwipy communicator
112112 :param loop: The event loop to schedule callbacks on
@@ -118,7 +118,7 @@ def __init__(self, communicator: T, loop: Optional[asyncio.AbstractEventLoop] =
118118 self ._loop : asyncio .AbstractEventLoop = loop or asyncio .get_event_loop ()
119119
120120 @property
121- def inner (self ) -> T :
121+ def inner (self ) -> CommT :
122122 return self ._communicator
123123
124124 def loop (self ) -> asyncio .AbstractEventLoop :
0 commit comments