ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
275 stars 31 forks source link

make package PEP-561 compatible (add py.typed) #141

Closed SimonDR-Boltzmann closed 2 years ago

SimonDR-Boltzmann commented 2 years ago

Is your feature request related to a problem? Please describe. When importing this package and using mypy (without the --follow-imports=skip option), mypy generates an error: "error: Skipping analyzing "anyconfig": found module but no type hints or library stubs"

Describe the solution you'd like The type hints in this package seem quite complete, I think all that is needed is to add a py.typed file. see https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages for the how-to.

ssato commented 2 years ago

Thanks a lot! I'll work on this.

ssato commented 2 years ago

Excuse me for late updates.

I pushed a commit 10c4346 may resolve this, I guess. If it looks OK, I'll release the new version contains that.

SimonDR-Boltzmann commented 2 years ago

Yes, that looks good! I just tested locally and mypy seems to handle everything well. Thank you!

ssato commented 2 years ago

Thanks for your check and quick response! OK, I'll release it ASAP.