diff --git a/docs/other/statv.md b/docs/other/statv.md index b60856a..9aa5027 100644 --- a/docs/other/statv.md +++ b/docs/other/statv.md @@ -19,7 +19,7 @@ class ExampleStatus(Statv): d = Stats[bool]("stats_d", default=False) def __init__(self, a: str, b: int, c: str = "cc"): - super().__init__({ + super().__init__(init_stats = { "stats_a": a, "stats_b": b, "stats_c": c @@ -60,4 +60,4 @@ def _(stats: Stats, past: ..., current: ...): return current ``` -可以使用 `defined_stats` 方法获取所有被声明的字段. \ No newline at end of file +可以使用 `defined_stats` 方法获取所有被声明的字段.