scout_apm_python
scout_apm_python copied to clipboard
Add typing information
We currently ignore typing of scout_apm in our project import scout_apm.api # type: ignore it would be nice to have typing information
Hi @wagdez !
I agree, it would be nice to ship type hints for the public API. We're a little constrained on that since we still support Python 2.7, since so many customers use it. Although it's possible to ship type stub files alongside Python 2.7 code, there's at least the unicode/str mess to address.
To be honest we'd need to do some more research to figure out the approach there - personally I've only worked with type hints in application code bases, from Python 3.7+. If you can point to any resources on maintaining type hints on Python 2.7+ projects that'd be useful.
Thanks,
Adam