Skip to content

Commit

Permalink
add keys()
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Sep 2, 2024
1 parent e9b51c1 commit fbdf374
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgm_tv_wiki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class Wiki:
type: str | None = None
fields: list[Field] = dataclasses.field(default_factory=list)

def keys(self) -> list[str]:
return [f.key for f in self.fields]

def non_zero(self) -> Wiki:
fields = []
for f in self.fields:
Expand Down

0 comments on commit fbdf374

Please sign in to comment.