Support for Type hints
Closed this issue · 2 comments
RandomNameUser commented
I'm trying to use flask-sock in an environment that enforces mypy --strict compatibility.
Would it be possible add type hints to the code? Given that type hints have been around since 3.5 in 2015, I'm somewhat skeptical there are many people left that would have a problem with them.
Thanks!
miguelgrinberg commented
Honestly I would prefer that someone contributes type hints for this package to typeshed. I personally do not rely on type hints or mypy, so maintaining type hints in this (and my many other) packages would add a considerable effort. Consider that the Python standard library uses the same approach, all of its type hints are hosted on the typeshed project.
RandomNameUser commented
Agreed. Didn't know about typeshed, thanks for the hint.