Skip to content

Commit

Permalink
Merge pull request #111 from smkent/manage-cookie
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
smkent authored Jan 28, 2024
2 parents abfe1af + 55881e4 commit bf768c0
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 177 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
args: ["--config", "pyproject.toml"]
Expand All @@ -18,7 +18,7 @@ repos:
- id: isort
args: ["--show-config"]
- repo: https://github.com/pycqa/bandit
rev: 1.7.6
rev: 1.7.7
hooks:
- id: bandit
additional_dependencies: ['.[toml]']
Expand Down
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
Loading

0 comments on commit bf768c0

Please sign in to comment.