Skip to content

Commit

Permalink
Reran black
Browse files Browse the repository at this point in the history
Reran black since the version used with python 3.11 was
more restrictive
  • Loading branch information
evalott100 committed Jan 29, 2024
1 parent 37233d9 commit 51f5fd9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/pandablocks/blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
17 changes: 7 additions & 10 deletions src/pandablocks/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 51f5fd9

Please sign in to comment.