From 10b386b7c08263bd94af1e7add145a2339c6c428 Mon Sep 17 00:00:00 2001 From: Paul Sharp <44529197+DrPaulSharp@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:40:27 +0000 Subject: [PATCH] Fixes ClassList serialization bug --- RATapi/classlist.py | 1 + RATapi/utils/plotting.py | 2 +- cpp/RAT | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RATapi/classlist.py b/RATapi/classlist.py index 68b0ea3c..46595af1 100644 --- a/RATapi/classlist.py +++ b/RATapi/classlist.py @@ -553,6 +553,7 @@ def validate_items(v: ClassList[T], handler: ValidatorFunctionWrapHandler) -> Cl core_schema.no_info_wrap_validator_function(coerce, core_schema.is_instance_schema(cls)), core_schema.no_info_wrap_validator_function(validate_items, list_schema), ], + serialization=core_schema.plain_serializer_function_ser_schema(lambda x: x), ) return schema diff --git a/RATapi/utils/plotting.py b/RATapi/utils/plotting.py index 46846b9f..97d5fa47 100644 --- a/RATapi/utils/plotting.py +++ b/RATapi/utils/plotting.py @@ -232,7 +232,7 @@ def plot_ref_sld( show_grid : bool, default: False Controls whether the grid is shown show_legend : bool, default: True - Controls whether the lengend is shown + Controls whether the legend is shown Returns ------- diff --git a/cpp/RAT b/cpp/RAT index af251ab2..ef7150ad 160000 --- a/cpp/RAT +++ b/cpp/RAT @@ -1 +1 @@ -Subproject commit af251ab27ebce5ab58ba27004eea541dae438785 +Subproject commit ef7150ad4af14120515b9f9ef9fb38b9d7637fe5