box / box/box-python-sdk

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

Open
#1,154 3 comments 0 reactions 5 assignees Claimed by @mwwoda View on GitHub
enhancement
Dominant language
Python
Stars
459
Forks
223
Avg merge
8h 57m
Merged PRs (30d)
13

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.