Changes in embedding.py, phrase.py, symbol.py, word.py
Removed deprecated value
This commit is contained in:
1 parent
dd85eee080
commit
6a5a04cd72
4 files changed
+4
-4
No files matched your search
@@ -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"
|
||||
),
|
||||
)
|
||||
@@ -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"
|
||||
),
|
||||
)
|
||||
@@ -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"
|
||||
),
|
||||
)
|
||||
@@ -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'
|
||||
),
|
||||
)
|
||||
Reference in new issue
Block a user