prometheus-fastapi-instrumentator icon indicating copy to clipboard operation
prometheus-fastapi-instrumentator copied to clipboard

Add py.typed

Open mmaslowskicc opened this issue 3 years ago • 2 comments

This allows mypy to use the present type annotations in packages using an installed prometheus-fastapi-instrumentator.

mmaslowskicc avatar May 31 '21 12:05 mmaslowskicc

I think you also need to add include = ["prometheus_fastapi_instrumentator/py.typed"] in the pyproject :thinking:

Kludex avatar May 31 '21 13:05 Kludex

It was included in the built sdist and wheel, but I'm not sure how Poetry determines what to include by default, so I added the include. Thanks.

mmaslowskicc avatar Jun 01 '21 07:06 mmaslowskicc

Thanks

trallnag avatar Aug 22 '22 18:08 trallnag

According to this blogpost adding the file in pyproject.toml is not necessary https://blog.whtsky.me/tech/2021/dont-forget-py.typed-for-your-typed-python-package/

trallnag avatar Aug 22 '22 19:08 trallnag