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" + ), + }, }, }