Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

daemon command to display the file and line/column of the place where a symbol is defined

未关闭
#21,762 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python

调研方向

从 dmypy 命令入口开始,跟踪符号定义和源代码位置如何通过守护进程提供。先检查现有的命令和响应约定,再决定纯文本和 --json 形式应如何表示;完成的标准是两种示例查询形式都返回某个符号原始的定义范围。

由索引模型根据 Issue 内容生成。

描述

feature

Feature

I'd like to see a dmypy command (e.g. dmypy find fully.qualified.name or dmypy find /path/to/file:line:column:end_line:end_column) that then displays the /path/to/file:line:column of the original definition of a symbol.

Pitch

This is primarily motivated by enabling deeper editor integrations to allow jumping to a definition in the same file or another file. The output would simply look like

dmypy find builtins.int
/path/to/site-packages/mypy/typeshed/stdlib/builtins.pyi:254:0:362:57
dmypy find builtins.int --json
{"file": "/path/to/site-packages/mypy/typeshed/stdlib/builtins.pyi", "line": 254, "column": 0, "end_line": 362, "end_column": 57}

and the editor would parse the output to allow jumping to the definition.

主要语言
Python
星标
20.6k
派生
3.3k
平均合并
1 天 3 小时
30 天内合并 PR
60

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/mypy 的其他 Issue

查看 python/mypy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。