Neoteroi / essentials-openapi

Functions to handle OpenAPI Documentation.
MIT License
23 stars 9 forks source link

Add py.typed file #10

Closed adriangb closed 2 years ago

adriangb commented 2 years ago

This fix the typical "no stub file found" errors from Pylance and MyPy

RobertoPrevato commented 2 years ago

Thank You @adriangb - I was just doing the same for GuardPost yesterday. Isn't it necessary to also add the py.typed file to a MANIFEST.in file (for example), so that it gets included in the distribution package?

adriangb commented 2 years ago

Oh yep. I'm used to using poetry/pyproject.toml so I forgot about that 😅

RobertoPrevato commented 2 years ago

The build failed, but this seems to be an issue within black - please don't mind about this right now. I'll pin the dependency.

RobertoPrevato commented 2 years ago

I'll merge your PR anyway, then I'll take a look at the GH Workflow. 😄 At the moment I don't have time.

adriangb commented 2 years ago

All good. I added the file to the setup.py; I tested locally and it works for me.

RobertoPrevato commented 2 years ago

Thank you for your help 🚀

adriangb commented 2 years ago

np!