Skip to content

Commit

Permalink
Merge pull request #4 from luxuncang/patch-1
Browse files Browse the repository at this point in the history
Update statv.md
  • Loading branch information
GreyElaina committed Sep 9, 2023
2 parents 360c314 + f3a83b9 commit c966051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/other/statv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -60,4 +60,4 @@ def _(stats: Stats, past: ..., current: ...):
return current
```

可以使用 `defined_stats` 方法获取所有被声明的字段.
可以使用 `defined_stats` 方法获取所有被声明的字段.

0 comments on commit c966051

Please sign in to comment.