question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sentry_sdk.init fails mypy checks

See original GitHub issue

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.5.10

Steps to Reproduce

  1. $ python3.10 -m venv venv
  2. $ source ./venv/bin/activate # assuming unix
  3. [venv] $ pip install sentry-sdk==1.5.10 mypy==0.950 (currently the latest versions of sentry-sdk and mypy)
  4. create file to test (mytest.py for example purposes)
# mytest.py
import sentry_sdk

sentry_sdk.init(dsn="this is a string")
  1. [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:closed
  • Created a year ago
  • Reactions:28
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
vladanpaunoviccommented, Apr 29, 2022

Thanks @dhuckins , we are on this and we expect to have a fix for this by Wednesday.

3reactions
sl0thentr0pycommented, May 3, 2022

@dhuckins released 1.5.11

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found