Skip to content

Commit 10b386b

Browse files
committed
Fixes ClassList serialization bug
1 parent 9c2970c commit 10b386b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

RATapi/classlist.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ def validate_items(v: ClassList[T], handler: ValidatorFunctionWrapHandler) -> Cl
553553
core_schema.no_info_wrap_validator_function(coerce, core_schema.is_instance_schema(cls)),
554554
core_schema.no_info_wrap_validator_function(validate_items, list_schema),
555555
],
556+
serialization=core_schema.plain_serializer_function_ser_schema(lambda x: x),
556557
)
557558

558559
return schema

RATapi/utils/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def plot_ref_sld(
232232
show_grid : bool, default: False
233233
Controls whether the grid is shown
234234
show_legend : bool, default: True
235-
Controls whether the lengend is shown
235+
Controls whether the legend is shown
236236
237237
Returns
238238
-------

0 commit comments

Comments
 (0)