@@ -234,10 +234,8 @@ def reset_send(
234234
235235 if self ._state != AsyncState .DEFAULT :
236236 raise AlreadyPendingCallError (
237- (
238- "Calling `reset_send` while waiting for a pending call to"
239- f" `{ self ._state .value } ` to complete"
240- ),
237+ "Calling `reset_send` while waiting for a pending call to"
238+ f" `{ self ._state .value } ` to complete" ,
241239 self ._state .value ,
242240 )
243241
@@ -329,10 +327,8 @@ def step_send(self, actions: np.ndarray):
329327 self ._assert_is_running ()
330328 if self ._state != AsyncState .DEFAULT :
331329 raise AlreadyPendingCallError (
332- (
333- "Calling `step_send` while waiting for a pending call to"
334- f" `{ self ._state .value } ` to complete."
335- ),
330+ "Calling `step_send` while waiting for a pending call to"
331+ f" `{ self ._state .value } ` to complete." ,
336332 self ._state .value ,
337333 )
338334
@@ -342,9 +338,7 @@ def step_send(self, actions: np.ndarray):
342338 pipe .send (("step" , action ))
343339 self ._state = AsyncState .WAITING_STEP
344340
345- def step_fetch (
346- self , timeout : Optional [Union [int , float ]] = None
347- ) -> Union [
341+ def step_fetch (self , timeout : Optional [Union [int , float ]] = None ) -> Union [
348342 Tuple [Any , NDArray [Any ], NDArray [Any ], List [Dict [str , Any ]]],
349343 Tuple [Any , NDArray [Any ], NDArray [Any ], NDArray [Any ], List [Dict [str , Any ]]],
350344 ]:
@@ -576,10 +570,8 @@ def call_send(self, name: str, *args, **kwargs):
576570 self ._assert_is_running ()
577571 if self ._state != AsyncState .DEFAULT :
578572 raise AlreadyPendingCallError (
579- (
580- "Calling `call_send` while waiting "
581- f"for a pending call to `{ self ._state .value } ` to complete."
582- ),
573+ "Calling `call_send` while waiting "
574+ f"for a pending call to `{ self ._state .value } ` to complete." ,
583575 str (self ._state .value ),
584576 )
585577
@@ -636,10 +628,8 @@ def exec_func_send(self, func: Callable, indices, *args, **kwargs):
636628 self ._assert_is_running ()
637629 if self ._state != AsyncState .DEFAULT :
638630 raise AlreadyPendingCallError (
639- (
640- "Calling `exec_func_send` while waiting "
641- f"for a pending call to `{ self ._state .value } ` to complete."
642- ),
631+ "Calling `exec_func_send` while waiting "
632+ f"for a pending call to `{ self ._state .value } ` to complete." ,
643633 str (self ._state .value ),
644634 )
645635
@@ -717,10 +707,8 @@ def set_attr(self, name: str, values: Union[List[Any], Tuple[Any], object]):
717707
718708 if self ._state != AsyncState .DEFAULT :
719709 raise AlreadyPendingCallError (
720- (
721- "Calling `set_attr` while waiting "
722- f"for a pending call to `{ self ._state .value } ` to complete."
723- ),
710+ "Calling `set_attr` while waiting "
711+ f"for a pending call to `{ self ._state .value } ` to complete." ,
724712 str (self ._state .value ),
725713 )
726714
0 commit comments