Skip to content

Commit

Permalink
Format using updated ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Jun 4, 2024
1 parent b8b82f7 commit 76b711f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/anycastd/_cli/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@


@overload
def print_error(msg: str | Exception, *, exit_code: None) -> None:
...
def print_error(msg: str | Exception, *, exit_code: None) -> None: ...


@overload
def print_error(msg: str | Exception, *, exit_code: ExitCode) -> NoReturn:
...
def print_error(msg: str | Exception, *, exit_code: ExitCode) -> NoReturn: ...


def print_error(msg: str | Exception, *, exit_code: ExitCode | None = None) -> None:
Expand Down
6 changes: 2 additions & 4 deletions src/anycastd/_configuration/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ def config_to_service(config: ServiceConfiguration) -> Service:


@overload
def _sub_config_to_instance(config: PrefixConfiguration) -> Prefix:
...
def _sub_config_to_instance(config: PrefixConfiguration) -> Prefix: ...


@overload
def _sub_config_to_instance(config: HealthcheckConfiguration) -> Healthcheck:
...
def _sub_config_to_instance(config: HealthcheckConfiguration) -> Healthcheck: ...


def _sub_config_to_instance(
Expand Down
1 change: 1 addition & 0 deletions tests/test_entrypoint_version_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the Python version check made by the entrypoint."""

import anycastd.__main__
import pytest

Expand Down

0 comments on commit 76b711f

Please sign in to comment.