Skip to content

Commit

Permalink
🐛 Fix: field_validator typo (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypas authored Feb 16, 2024
1 parent 523e171 commit 616db72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/qq/models/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class ThreadObjectInfo(BaseModel):
content: RichText
date_time: datetime

@field_validator("content", model="before")
@field_validator("content", mode="before")
@classmethod
def parse_content(cls, v):
if isinstance(v, str):
Expand Down

0 comments on commit 616db72

Please sign in to comment.