Skip to content

Conversation

@LIghtJUNction
Copy link
Member

@LIghtJUNction LIghtJUNction commented Nov 2, 2025

fixes #XYZ


Motivation / 动机

动机:https://anyio.readthedocs.io/en/stable/why.html

Modifications / 改动点

Verification Steps / 验证步骤

Screenshots or Test Results / 运行截图或测试结果

Compatibility & Breaking Changes / 兼容性与破坏性变更

  • 这是一个破坏性变更 (Breaking Change)。/ This is a breaking change.
  • [ x] 这不是一个破坏性变更。/ This is NOT a breaking change.

Checklist / 检查清单

  • 😊 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。/ If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
  • [x ] 👀 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”。/ My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
  • [ x] 🤓 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到了 requirements.txtpyproject.toml 文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in requirements.txt and pyproject.toml.
  • [x ] 😮 我的更改没有引入恶意代码。/ My changes do not introduce malicious code.

Sourcery 总结

改进:

  • 在 main.py 中使用 anyio.run 替代 asyncio.run,以支持多个异步后端并提高兼容性和可扩展性
Original summary in English

Summary by Sourcery

Enhancements:

  • Use anyio.run instead of asyncio.run in main.py to support multiple async backends and improve compatibility and extensibility

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你好 - 我已经审查了你的更改,它们看起来很棒!


Sourcery 对开源项目免费 - 如果你喜欢我们的评论,请考虑分享它们 ✨
帮助我变得更有用!请在每条评论上点击 👍 或 👎,我将利用这些反馈来改进你的评论。
Original comment in English

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

还有很多位置没改
@LIghtJUNction LIghtJUNction marked this pull request as draft November 2, 2025 10:40
LIghtJUNction and others added 2 commits November 2, 2025 18:45
anyio 没有 asyncio的队列,而是使用anyio.streams.memory 进行代替。

BREAKING CHANGE: 可能具有破坏性,稍后我会进行测试
@LIghtJUNction
Copy link
Member Author

@copilot 代码格式化

Copy link
Contributor

Copilot AI commented Nov 2, 2025

@LIghtJUNction I've opened a new pull request, #3274, to work on those changes. Once the pull request is ready, I'll request review from you.

@LIghtJUNction
Copy link
Member Author

@copilot mypy工具进行检查,看看有没有错误,修复一下

Copy link
Contributor

Copilot AI commented Nov 2, 2025

@LIghtJUNction I've opened a new pull request, #3284, to work on those changes. Once the pull request is ready, I'll request review from you.

@LIghtJUNction
Copy link
Member Author

@copilot 请你使用mypy进行检查,进修复异步相关的错误

Copy link
Contributor

Copilot AI commented Nov 2, 2025

@LIghtJUNction I've opened a new pull request, #3288, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants