Fix: Message.__contains__()
未考虑 bool(MessageSegment)
存在 False 情况导致的异常结果
#684
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruff Lint | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- "envs/**" | |
- "nonebot/**" | |
- "packages/**" | |
- "tests/**" | |
- ".github/actions/setup-python/**" | |
- ".github/workflows/ruff.yml" | |
- "pyproject.toml" | |
- "poetry.lock" | |
jobs: | |
ruff: | |
name: Ruff Lint | |
runs-on: ubuntu-latest | |
concurrency: | |
group: pyright-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Ruff Lint | |
uses: chartboost/ruff-action@v1 |