box / box/box-python-sdk

Missing py.typed marker in box_sdk_gen causes mypy import-untyped error

未关闭
#1,154 3 条评论 0 个 reaction 已指派 5 人 已被 @mwwoda 认领 在 GitHub 查看
enhancement
主要语言
Python
星标
459
派生
223
平均合并
14 小时 18 分钟
30 天内合并 PR
21

描述

When I run `mypy` on my project, it highlights the following import:

```python
from box_sdk_gen import ...
```

with the error:

```
error: Skipping analyzing "box_sdk_gen": module is installed, but missing library stubs or py.typed marker [import-untyped]
```

This can be simply resolved by adding a `py.typed` file to the root of the `box_sdk_gen` package to indicate that the package includes type hints.

[More details](https://typing.python.org/en/latest/spec/distributing.html#packaging-type-information).

Image

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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