From 89f6cba8300ee8801c166d5aec3727c95075a62b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Dec 2023 18:31:53 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#196) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.7](https://github.com/astral-sh/ruff-pre-commit/compare/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> --- .pre-commit-config.yaml | 2 +- cbor2/_encoder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 184568a2..7f16dec0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/cbor2/_encoder.py b/cbor2/_encoder.py index 93c5492e..3a3ff3be 100644 --- a/cbor2/_encoder.py +++ b/cbor2/_encoder.py @@ -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 @@ -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