Skip to content

Commit

Permalink
Black'n
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Mar 24, 2024
1 parent 562e1e2 commit 4b6ddaa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions src/lvmapi/tools/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,26 +95,23 @@ async def send_command(
command_string: str,
*,
raw: Literal[False],
) -> list[dict[str, Any]]:
...
) -> list[dict[str, Any]]: ...


@overload
async def send_command(
command_string: str,
*,
raw: Literal[True],
) -> Command:
...
) -> Command: ...


@overload
async def send_command(
command_string: str,
*,
raw: bool,
) -> list[dict[str, Any]] | Command:
...
) -> list[dict[str, Any]] | Command: ...


async def send_command(
Expand Down
6 changes: 2 additions & 4 deletions src/lvmapi/tools/spectrograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ async def get_spectrograph_mechanics(spec: Spectrographs):


@overload
async def read_thermistors(interval: float) -> pandas.DataFrame:
...
async def read_thermistors(interval: float) -> pandas.DataFrame: ...


@overload
async def read_thermistors(interval: None) -> dict[str, bool]:
...
async def read_thermistors(interval: None) -> dict[str, bool]: ...


async def read_thermistors(
Expand Down

0 comments on commit 4b6ddaa

Please sign in to comment.