sentry_sdk.init fails mypy checks
See original GitHub issueHow do you use Sentry?
Sentry Saas (sentry.io)
Version
1.5.10
Steps to Reproduce
$ python3.10 -m venv venv
$ source ./venv/bin/activate # assuming unix
[venv] $ pip install sentry-sdk==1.5.10 mypy==0.950
(currently the latest versions of sentry-sdk and mypy)- create file to test (
mytest.py
for example purposes)
# mytest.py
import sentry_sdk
sentry_sdk.init(dsn="this is a string")
[venv] $ mypy mytest.py
Expected Result
no errors
Actual Result
❯ mypy mytest.py
mytest.py:3: error: Cannot instantiate abstract class "init" with abstract attribute "__exit__"
Found 1 error in 1 file (checked 1 source file)
Issue Analytics
- State:
- Created a year ago
- Reactions:28
- Comments:10 (5 by maintainers)
Top Results From Across the Web
sentry_sdk.client — sentry-python 1.12.0 documentation
_types import MYPY if MYPY: from typing import Any from typing import Callable from ... def __init__(self, *args, **kwargs): # type: (*Any, **Any)...
Read more >Troubleshooting for .NET - Sentry Documentation
Learn more about how to troubleshoot common issues with the .NET SDK.
Read more >CHANGES - getsentry/sentry - Sourcegraph
dep(profiling): Bump sentry sdk for updated profiler (#41324) by @Zylphrex ... feat(monitors): Tag error events with monitor id (#41291) by @davidenwang.
Read more >D5840 Add typing stubs dependencies for mypy>0.900
Strange output from my local checks. tox -r -e mypy GLOB sdist-make: ... error: Cannot find implementation or library stub for module named ......
Read more >sentry Changelog - PyUp.io
- Added first pass API at storing javascript artifacts via release APIs. - Improved error reporting for JavaScript source/sourcemap errors. - Improved ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @dhuckins , we are on this and we expect to have a fix for this by Wednesday.
@dhuckins released 1.5.11