Skip to content

Commit

Permalink
Merge pull request #70 from PandABlocks/rerun_black_3.11
Browse files Browse the repository at this point in the history
Reran black
  • Loading branch information
evalott100 authored Jan 29, 2024
2 parents 37233d9 + 51f5fd9 commit eafd86f
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 eafd86f

Please sign in to comment.