Open Sytten opened 4 years ago
So looking over PEP-561 and mypy's documentation , it appears that in order for flask-rebar to be PEP-561 compliant and still support Python 2.7, we would have to add stubs for all modules.
The other option I can see is waiting until we officially drop Python 2 support, and adding inline type-hints to the entire library.
Either seems a fairly large undertaking, but I know I'd prefer inline type hints.
@Sytten can I block this out on Python 2 deprecation, or would you want to see if anyone is up for undertaking adding stubs?
I think we need to wait on python 2 and 3.4 deprecation, it will then be much easier and cleaner.
Just noting that since this issue was last updated, the development branch has dropped Python 2 and 3.4 support (in #205) as of several months ago, nice.
I can take a stab at this one
This is already important for us since we started using mypy to type check our code. We have to ignore all code flask-rebar currently.