Skip to content

Commit

Permalink
🐛 Fix: 修复群聊消息附件的字段类型错误 (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
yanyongyu and pre-commit-ci[bot] authored Feb 27, 2024
1 parent 8f80253 commit 9a33142
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Default Linux Universal",
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
},
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install",
"customizations": {
Expand All @@ -15,40 +15,40 @@
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.fixAll.ruff": true,
"source.organizeImports": true,
},
"source.organizeImports": true
}
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.exclude": {
"**/__pycache__": true,
"**/__pycache__": true
},
"files.watcherExclude": {
"**/target/**": true,
"**/__pycache__": true,
},
"**/__pycache__": true
}
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.black-formatter",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
],
},
},
"esbenp.prettier-vscode"
]
}
}
}
6 changes: 3 additions & 3 deletions nonebot/adapters/qq/models/qq.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class GroupMemberAuthor(BaseModel):
class Attachment(BaseModel):
content_type: str
filename: Optional[str] = None
height: Optional[str] = None
width: Optional[str] = None
size: Optional[str] = None
height: Optional[int] = None
width: Optional[int] = None
size: Optional[int] = None
url: Optional[str] = None

@field_validator("url", mode="after")
Expand Down

0 comments on commit 9a33142

Please sign in to comment.