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