box / box/box-python-sdk

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

Offen
#1,154 3 Kommentare 0 Reaktionen 5 zugewiesene Personen Beansprucht von @mwwoda Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
459
Forks
223
Ø Merge
8 Std. 57 Min.
Gemergte PRs (30 T.)
13

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.