Walkthrough
## Walkthrough
此次更新涉及到`tqsdk`包的版本号从`3.7.0`提升至`3.7.1`,包含了一些小的修复和改进。文档配置文件和相关元数据也进行了相应的版本更新,确保一致性。此外,修复了Windows平台上`TqCtp`类的多个实例运行问题,并纠正了示例代码中的拼写错误。对子进程管理进行了改进,增强了输入处理的灵活性。
## Changes
| 文件 | 更改摘要 |
|--------------------------|--------------------------------------------------|
| `PKG-INFO`, `doc/conf.py`, `setup.py`, `tqsdk/__version__.py` | 版本号从`3.7.0`更新至`3.7.1`。依赖项`tqsdk_zq_otg`版本从`1.1.0`更新至`1.1.1`。 |
| `doc/version.rst` | 新增`3.7.1`版本条目,包含关于`TqCtp`类的两个修复。 |
| `tqsdk/tradeable/otg/tqctp.py` | 修正`TqCtp`构造函数示例中的语法错误。 |
| `tqsdk/zq_otg.py` | 修改`get_addr`方法中的子进程标准输入处理,改为使用`PIPE`,并更新`__aexit__`方法以关闭子进程的输入流。 |
## Sequence Diagram(s)
```mermaid
sequenceDiagram
participant User
participant TqCtp
participant Subprocess
User->>TqCtp: 创建实例
TqCtp->>Subprocess: 启动子进程
Subprocess->>TqCtp: 接收输入
TqCtp->>Subprocess: 处理输入
Subprocess-->>TqCtp: 返回结果
TqCtp->>User: 返回结果
```
## Poem
> 🐰
> 在草地上跳跃,心情真美好,
> `tqsdk`更新,版本号高。
> 小修小补,功能更灵活,
> 代码如春风,轻轻拂过。
> 兔子欢呼,舞动小脚,
> 祝福新版本,永远不掉!
> 🎉
Tips
### Chat
There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai):
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
- `I pushed a fix in commit .`
- `Generate unit testing code for this file.`
- `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
- `@coderabbitai generate unit testing code for this file.`
- `@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
- `@coderabbitai generate interesting stats about this repository and render them as a table.`
- `@coderabbitai show all the console.log statements in this repository.`
- `@coderabbitai read src/utils.ts and generate unit testing code.`
- `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
- `@coderabbitai help me debug CodeRabbit configuration file.`
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
### CodeRabbit Commands (Invoked using PR comments)
- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.
### Other keywords and placeholders
- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.
### CodeRabbit Configuration File (`.coderabbit.yaml`)
- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`
### Documentation and Community
- Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
Automated changes by create-pull-request GitHub action
Summary by CodeRabbit
新特性
TqCtp
类的多个实例运行问题。TqCtp
类示例代码中的拼写错误。错误修复
TqCtp
类构造函数示例中的语法错误,确保参数格式正确。文档