From 63990aba7e75aae576021a8ce97dcb96186ba4e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 5 Oct 2025 15:44:56 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_jsonable_encoder.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_jsonable_encoder.py b/tests/test_jsonable_encoder.py index 843007af4..a5514de0b 100644 --- a/tests/test_jsonable_encoder.py +++ b/tests/test_jsonable_encoder.py @@ -335,9 +335,7 @@ def test_encode_with_context() -> None: @field_serializer("value") def serialize_value(value: int, info: SerializationInfo) -> int: if info.context is not None: - if isinstance( - value_from_context := info.context.get("value"), int - ): + if isinstance(value_from_context := info.context.get("value"), int): return value_from_context return value