matrix-org / matrix-org/matrix-python-common
Import twisted stubs from sydent
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 4
- 派生
- 7
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently we have to force mypy to allow calling untyped functions from a typed context, because we call functions from twisted that aren't typed (at least as of #11). Sydent has a bunch of twisted stubs: https://github.com/matrix-org/sydent/tree/main/stubs - we should copy them to this repo and use them instead.
However it's not entirely clear to me how to do that in a way that wouldn't duplicate code, i.e. in a way we could import them in Sydent from this library (i.e. we want to move the stubs from Sydent to here, rather than just copying them over).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 Sydent 的 stubs 目录中的 stubs,以及此 repository 的 packaging 配置。确定如何在此处提供 Twisted stubs,同时使 Sydent 仍能 import 它们,并且不重复代码。完成的标准是:共享 stubs 可供此库和 Sydent 使用,现有的类型化调用不再需要当前的 workaround。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- developer-experience, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100