From 51f5fd92eb9afff475307d163df2ab5addc0b66b Mon Sep 17 00:00:00 2001 From: Eva Lott Date: Mon, 29 Jan 2024 09:05:16 +0000 Subject: [PATCH] Reran black Reran black since the version used with python 3.11 was more restrictive --- src/pandablocks/blocking.py | 8 ++++---- src/pandablocks/commands.py | 17 +++++++---------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/pandablocks/blocking.py b/src/pandablocks/blocking.py index 6cd121485..f2c818890 100644 --- a/src/pandablocks/blocking.py +++ b/src/pandablocks/blocking.py @@ -64,12 +64,12 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.close() @overload - def send(self, commands: Command[T], timeout: Optional[int] = None) -> T: - ... + def send(self, commands: Command[T], timeout: Optional[int] = None) -> T: ... @overload - def send(self, commands: Iterable[Command], timeout: Optional[int] = None) -> List: - ... + def send( + self, commands: Iterable[Command], timeout: Optional[int] = None + ) -> List: ... def send( self, diff --git a/src/pandablocks/commands.py b/src/pandablocks/commands.py index d273a66ee..e387d2bce 100644 --- a/src/pandablocks/commands.py +++ b/src/pandablocks/commands.py @@ -92,34 +92,31 @@ class CommandException(Exception): # zip() because typing does not support variadic type variables. See # typeshed PR #1550 for discussion. @overload -def _execute_commands(c1: Command[T]) -> ExchangeGenerator[Tuple[T]]: - ... +def _execute_commands(c1: Command[T]) -> ExchangeGenerator[Tuple[T]]: ... @overload def _execute_commands( c1: Command[T], c2: Command[T2] -) -> ExchangeGenerator[Tuple[T, T2]]: - ... +) -> ExchangeGenerator[Tuple[T, T2]]: ... @overload def _execute_commands( c1: Command[T], c2: Command[T2], c3: Command[T3] -) -> ExchangeGenerator[Tuple[T, T2, T3]]: - ... +) -> ExchangeGenerator[Tuple[T, T2, T3]]: ... @overload def _execute_commands( c1: Command[T], c2: Command[T2], c3: Command[T3], c4: Command[T4] -) -> ExchangeGenerator[Tuple[T, T2, T3, T4]]: - ... +) -> ExchangeGenerator[Tuple[T, T2, T3, T4]]: ... @overload -def _execute_commands(*commands: Command[Any]) -> ExchangeGenerator[Tuple[Any, ...]]: - ... +def _execute_commands( + *commands: Command[Any], +) -> ExchangeGenerator[Tuple[Any, ...]]: ... def _execute_commands(*commands):