Skip to content

Pylint complaining abstract-class-instantiated because of type hint stunt for init #1081

@pcorpet

Description

@pcorpet

Environment

How do you use Sentry?
Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?)
Saas

Which SDK and version?
python-sdk v1.0.0 in Python 3.9

Steps to Reproduce

In my code, I call

sentry_sdk.init(dsn=os.getenv('SENTRY_DSN')

I use pylint that just released a version 2.7.4 to statically check my code for lint errors

Expected Result

No lint error found (that was the case three weeks ago)

Actual Result

I get this pylint error

E0110: Abstract class 'init' with abstract methods instantiated (abstract-class-instantiated)

I believe this is due to the stunt to have nicer autocompletion that is now detected by pylint.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions