py.typed file / type stubs are missing

未关闭 适合新手
#876 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
api

调研方向

首先定位已安装的 polygon 包,并使用 mypy 通过 examples/stocks-daily_open_close.py 重现报告。检查该包是否按照 issue 中的描述导出其类型信息,然后验证该示例在没有缺少 stubs 错误的情况下通过类型检查。

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

描述

bug

Describe the bug
The polygon package does not export its type information to mypy, which causes mypy to fail when used on downstream packages

To Reproduce

  1. Download examples/stocks-daily_open_close.py or any other example file
  2. mypy stocks-daily_open_close.py
  3. Observe the following error:
stocks-daily_open_close.py:1: error: Skipping analyzing "polygon": module is installed, but missing library stubs or py.typed marker  [import-untyped]
stocks-daily_open_close.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

Expected behavior
The type checks should pass

Additional context
I think all that is needed is to add the missing py.typed file to the polygon package

主要语言
Python
星标
1.5k
派生
362
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

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

massive-com/client-python 的其他 Issue

查看 massive-com/client-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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