Skip to content

Commit

Permalink
ref(scope): Fix get_client typing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
szokeasaurusrex committed May 10, 2024
1 parent 2cdc635 commit 0d40c9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry_sdk/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
from sentry_sdk.tracing import TransactionKwargs

import sentry_sdk
import sentry_sdk.client

P = ParamSpec("P")
R = TypeVar("R")
Expand Down

0 comments on commit 0d40c9a

Please sign in to comment.