Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(scope): Fix get_client typing #3063

Merged
merged 1 commit into from May 10, 2024

Conversation

szokeasaurusrex
Copy link
Member

The Scope.get_client method is typed as returning sentry_sdk.client.BaseClient, but because sentry_sdk.client was not imported, the type was resolved as Any. This change imports sentry_sdk.client to fix the type hints.

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) May 10, 2024 13:57
@szokeasaurusrex szokeasaurusrex self-assigned this May 10, 2024
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/fix-get_client-typing branch from 0d40c9a to bbe01a5 Compare May 10, 2024 14:00
The `Scope.get_client` method is typed as returning `sentry_sdk.client.BaseClient`, but because `sentry_sdk.client` was not imported, the type was resolved as `Any`. This change imports `sentry_sdk.client` to fix the type hints.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/fix-get_client-typing branch from bbe01a5 to 4a01c21 Compare May 10, 2024 14:01
@szokeasaurusrex szokeasaurusrex merged commit 1a32183 into master May 10, 2024
109 of 110 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/fix-get_client-typing branch May 10, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants