Skip to content

Commit

Permalink
Apply automatic linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smkent committed Jan 28, 2024
1 parent 81fbaa8 commit 55881e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 8 additions & 12 deletions jmapc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,51 +186,47 @@ def request(
calls: Method,
raise_errors: Literal[False] = False,
single_response: Literal[True] = True,
) -> ResponseOrError:
... # pragma: no cover
) -> ResponseOrError: ... # pragma: no cover

@overload
def request(
self,
calls: Method,
raise_errors: Literal[False] = False,
single_response: Literal[False] = False,
) -> Union[Sequence[ResponseOrError], ResponseOrError]:
... # pragma: no cover
) -> Union[
Sequence[ResponseOrError], ResponseOrError
]: ... # pragma: no cover

@overload
def request(
self,
calls: Method,
raise_errors: Literal[True],
single_response: Literal[True],
) -> Response:
... # pragma: no cover
) -> Response: ... # pragma: no cover

@overload
def request(
self,
calls: Method,
raise_errors: Literal[True],
single_response: Literal[False] = False,
) -> Union[Sequence[Response], Response]:
... # pragma: no cover
) -> Union[Sequence[Response], Response]: ... # pragma: no cover

@overload
def request(
self,
calls: Sequence[Request],
raise_errors: Literal[False] = False,
) -> Sequence[InvocationResponse]:
... # pragma: no cover
) -> Sequence[InvocationResponse]: ... # pragma: no cover

@overload
def request(
self,
calls: Sequence[Request],
raise_errors: Literal[True],
) -> Sequence[InvocationResponse]:
... # pragma: no cover
) -> Sequence[InvocationResponse]: ... # pragma: no cover

def request(
self,
Expand Down
2 changes: 2 additions & 0 deletions types/sseclient.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ class SSEClient:
**kwargs: Any
):
pass

def __iter__(self) -> SSEClient:
pass

def __next__(self) -> "Event":
pass

Expand Down

0 comments on commit 55881e4

Please sign in to comment.