From a08d08282717ffd8d8e7b946e6794afe2c2167ab Mon Sep 17 00:00:00 2001 From: Alex Hadley Date: Fri, 24 Feb 2023 11:06:55 -0800 Subject: [PATCH] Fix struct example --- docs/usage.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.md b/docs/usage.md index 5028d69..52e32d3 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -61,12 +61,12 @@ store parameters and lists and dictionaries of parameters. For example: from paramdb import Struct @dataclass -class CustomStruct(Param): +class CustomStruct(Struct): param: CustomParam param_dict: dict[str, CustomParam] custom_struct = CustomStruct( - param = CustomParam(value=1.23) + param = CustomParam(value=1.23), param_dict = { "p1": CustomParam(value=4.56), "p2": CustomParam(value=7.89),