Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit bb45cb4

Browse files
🔖 bump version 1.3.1
1 parent f0adbc2 commit bb45cb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nonebot/adapters/villa/models.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ class TextEntity(BaseModel):
180180

181181

182182
class ImageSize(BaseModel):
183-
width: int
184-
height: int
183+
width: Optional[int] = None
184+
height: Optional[int] = None
185185

186186

187187
class Image(BaseModel):
188188
url: str
189-
size: Optional[ImageSize] = None
189+
size: ImageSize = Field(default_factory=ImageSize)
190190
file_size: Optional[int] = None
191191

192192

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nonebot-adapter-villa"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
description = "NoneBot2 米游社大别野 Bot 适配器。MiHoYo Villa Bot adapter for nonebot2."
55
authors = ["CMHopeSunshine <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)