From 6a5a04cd72091399a339bfcd27a1485398910bb8 Mon Sep 17 00:00:00 2001 From: Christoph Eder Date: Fri, 12 Dec 2025 16:33:45 +0100 Subject: [PATCH] Changes in embedding.py, phrase.py, symbol.py, word.py Removed deprecated value --- anansyTypes/structures/embedding.py | 2 +- anansyTypes/structures/phrase.py | 2 +- anansyTypes/structures/symbol.py | 2 +- anansyTypes/structures/word.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anansyTypes/structures/embedding.py b/anansyTypes/structures/embedding.py index 58d78ac..a8622aa 100644 --- a/anansyTypes/structures/embedding.py +++ b/anansyTypes/structures/embedding.py @@ -34,6 +34,6 @@ class Embedding: return core_schema.json_or_python_schema( python_schema=handler(cls), json_schema=core_schema.plain_serializer_function_ser_schema( - serialize, return_type=dict, when_used="json" + serialize, when_used="json" ), ) diff --git a/anansyTypes/structures/phrase.py b/anansyTypes/structures/phrase.py index 75e58bc..ef3b92c 100644 --- a/anansyTypes/structures/phrase.py +++ b/anansyTypes/structures/phrase.py @@ -32,6 +32,6 @@ class Phrase(Lexeme): lambda x: x, core_schema.is_instance_schema(cls), serialization=core_schema.plain_serializer_function_ser_schema( - serialize, return_type=dict, when_used="json" + serialize, when_used="json" ), ) diff --git a/anansyTypes/structures/symbol.py b/anansyTypes/structures/symbol.py index 634fa9d..93d5593 100644 --- a/anansyTypes/structures/symbol.py +++ b/anansyTypes/structures/symbol.py @@ -24,6 +24,6 @@ class Symbol: return core_schema.json_or_python_schema( python_schema=handler(cls), json_schema=core_schema.plain_serializer_function_ser_schema( - serialize, return_type=dict, when_used="json" + serialize, when_used="json" ), ) diff --git a/anansyTypes/structures/word.py b/anansyTypes/structures/word.py index 341a709..76dad71 100644 --- a/anansyTypes/structures/word.py +++ b/anansyTypes/structures/word.py @@ -38,6 +38,6 @@ class Word(Lexeme): return core_schema.json_or_python_schema( python_schema=core_schema.is_instance_schema(cls), json_schema=core_schema.plain_serializer_function_ser_schema( - serialize, return_type=dict, when_used='json' + serialize, when_used='json' ), )