It would be useful to be able to use the type hints defined in this library with mypy. This library needs to add support for PEP 561 for this to work.
Activity
untitaker commentedon May 23, 2019
Thanks for bringing this to my attention, I think this should be fixed in the next release.
RDIL commentedon Nov 15, 2019
Mypy is still complaining for me.
d33tah commentedon Jan 27, 2020
Same here. Pinging @untitaker
untitaker commentedon Jan 27, 2020
can you go into more detail about what actually happens?
d33tah commentedon Jan 27, 2020
@untitaker consider the following Dockerfile:
Here's what happens when you run
docker build .:untitaker commentedon Jan 28, 2020
Okay right,
--strictdoes not work. I don't know how to fix that. Patches welcome :)rafales commentedon Apr 22, 2020
@untitaker mypy can't deal with dynamic
__all__. Copying all entries and making it a simple list solves the problem.fix: Quiet down implicit reexport type errors from sentry_sdk
fix: Quiet down mypy errors from sentry_sdk
intgr commentedon Oct 26, 2020
I created a PR #892 that enables type hints for the top-level
sentry_sdkmodule.It seems that should address the problems brought up in this issue?