Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#196)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.7](astral-sh/ruff-pre-commit@v0.1.6...v0.1.7)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 12, 2023
1 parent e9e7a82 commit 89f6cba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.7
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
4 changes: 2 additions & 2 deletions cbor2/_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


def shareable_encoder(
func: Callable[[CBOREncoder, Any], None]
func: Callable[[CBOREncoder, Any], None],
) -> Callable[[CBOREncoder, Any], None]:
"""
Wrap the given encoder function to gracefully handle cyclic data
Expand All @@ -60,7 +60,7 @@ def wrapper(encoder: CBOREncoder, value: Any) -> None:


def container_encoder(
func: Callable[[CBOREncoder, Any], Any]
func: Callable[[CBOREncoder, Any], Any],
) -> Callable[[CBOREncoder, Any], Any]:
"""
The given encoder is a container with child values. Handle cyclic or
Expand Down

0 comments on commit 89f6cba

Please sign in to comment.