nickjj / flask-static-digest

Flask extension to help make your static files production ready by md5 tagging and gzipping them.
MIT License
157 stars 27 forks source link

Enhancement Suggestion: Add Type Hints Support #40

Open BroFromSpace opened 2 months ago

BroFromSpace commented 2 months ago

I suggest adding type hints to the project. Incorporating type hints would be beneficial as the project grows and gains popularity.

If you decide to move forward with this enhancement, I would be happy to help with the implementation.

nickjj commented 2 months ago

Hi, thanks. Currently I don't use type hints in any projects. Given you typically reference this project as a library in your application code, what benefits would you gain? Is it mainly having better auto-complete if you need to debug an error in this library for editors that support it?

BroFromSpace commented 2 months ago

Hi, thanks. Currently I don't use type hints in any projects. Given you typically reference this project as a library in your application code, what benefits would you gain? Is it mainly having better auto-complete if you need to debug an error in this library for editors that support it?

Yes, the primary purpose of type hints is to enhance auto-complete support, especially when you encounter errors or issues. Additionally, type hints can benefit other contributors who may want to join the project or developers who fork it, as they provide clearer documentation and help maintain consistency.