From 51906225bd4168275882d94f449fac170628c99b Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Fri, 18 Jul 2025 08:56:24 +0200 Subject: [PATCH] Simplify tests/test_custom_schema_fields.py Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> --- tests/test_custom_schema_fields.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/test_custom_schema_fields.py b/tests/test_custom_schema_fields.py index cd1d3f9f9..4a7c01427 100644 --- a/tests/test_custom_schema_fields.py +++ b/tests/test_custom_schema_fields.py @@ -55,17 +55,12 @@ item_schema = { "title": "Name", "type": "string", }, - "description": ( - { - "title": "Description", - "type": IsList("string", "null", check_order=False), - } - if PYDANTIC_V2 - else { - "title": "Description", - "type": "string", - } - ), + "description": { + "title": "Description", + "type": ( + IsList("string", "null", check_order=False) if PYDANTIC_V2 else "string" + ), + }, }, }