Imports from _async module doesn't get converted to imports from _sync
还没有人认领这个 Issue。
评估
调研方向
使用报告中的两个导入示例重现该问题,然后跟踪处理 _async 名称的导入转换入口点。添加回归测试覆盖,将 library._async.module 转换为 library._sync.module,同时将 AsyncFoo 更改为 SyncFoo,并验证生成了预期的导入。
由索引模型根据 Issue 内容生成。
描述
Imports from the _async module seem to be unaffected:
from library._async.module import AsyncFoo
gets converted to
from library._async.module import SyncFoo
Expected result:
from library._sync.module import SyncFoo
Currently working around it by exporting both the classes from a common place, but it'd be nice to have this work.
- 主要语言
- Python
- 星标
- 108
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-trio/unasync 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 32/100
python-trio/unasync#78 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
python-trio/unasync#74 · 4 条评论 · 1 个 reaction ·
-
JIT未关闭
难度 5/5 一周以上 新手友好度 20/100
python-trio/unasync#72 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
python-trio/unasync#69 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
python-trio/unasync#68 · 2 条评论 · 2 个 reaction ·
查看 python-trio/unasync 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
awslabs/visual-asset-management-system#414 ·
维护者通常 1 天内回复
-
bug v1 v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/python-sdk#3670 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
aicell-lab/bioengine#232 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
modelscope/evalscope#1836 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100