Skip to content

Commit

Permalink
fix: Fix using type as default value
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed May 14, 2024
1 parent bc0f7f9 commit a767569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enka/models/hsr/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Character(BaseModel):
id: int = Field(alias="avatarId")
traces: list[Trace] = Field(alias="skillTreeList")
light_cone: LightCone | None = Field(None, alias="equipment")
relics: list[Relic] = Field(list, alias="relicList")
relics: list[Relic] = Field(alias="relicList", default_factory=list)
eidolons_unlocked: int = Field(0, alias="rank")
is_assist: bool = Field(False, alias="_assist")

Expand Down

0 comments on commit a767569

Please sign in to comment.