Skip to content

Commit

Permalink
Formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjekv committed Jul 1, 2024
1 parent ca7a272 commit c145f58
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions mreg_cli/utilities/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,23 +294,19 @@ def _request_wrapper(


@overload
def get(path: str, params: QueryParams | None, ok404: Literal[True]) -> Response | None:
...
def get(path: str, params: QueryParams | None, ok404: Literal[True]) -> Response | None: ...


@overload
def get(path: str, params: QueryParams | None, ok404: Literal[False]) -> Response:
...
def get(path: str, params: QueryParams | None, ok404: Literal[False]) -> Response: ...


@overload
def get(path: str, params: QueryParams | None = ..., *, ok404: bool) -> Response | None:
...
def get(path: str, params: QueryParams | None = ..., *, ok404: bool) -> Response | None: ...


@overload
def get(path: str, params: QueryParams | None = ...) -> Response:
...
def get(path: str, params: QueryParams | None = ...) -> Response: ...


def get(path: str, params: QueryParams | None = None, ok404: bool = False) -> Response | None:
Expand Down Expand Up @@ -472,8 +468,7 @@ def get_list_generic(
ok404: bool = False,
limit: int | None = 500,
expect_one_result: Literal[True] = True,
) -> Json:
...
) -> Json: ...


@overload
Expand All @@ -483,8 +478,7 @@ def get_list_generic(
ok404: bool = False,
limit: int | None = 500,
expect_one_result: Literal[False] = False,
) -> list[Json]:
...
) -> list[Json]: ...


def get_list_generic(
Expand Down

0 comments on commit c145f58

Please sign in to comment.