Skip to content

Commit

Permalink
Merge pull request #86 from PandABlocks/make_ruff_compliant
Browse files Browse the repository at this point in the history
made ruff compliant
  • Loading branch information
coretl authored Mar 12, 2024
2 parents 1af2759 + 1051829 commit e6f8b67
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/pandablocks/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,36 +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, ...]]:
...
) -> ExchangeGenerator[Tuple[Any, ...]]: ...


def _execute_commands(*commands):
Expand Down

0 comments on commit e6f8b67

Please sign in to comment.