Skip to content

Commit 4b849ee

Browse files
committed
Fix some types
1 parent 99eb066 commit 4b849ee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sentry_sdk/integrations/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class _ScopedResponse:
254254
__slots__ = ("_response", "_scope")
255255

256256
def __init__(self, scope, response):
257-
# type: (sentry_sdk.scope.Scope, Iterator[bytes]) -> None
257+
# type: (sentry_sdk.Scope, Iterator[bytes]) -> None
258258
self._scope = scope
259259
self._response = response
260260

sentry_sdk/opentelemetry/scope.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def setup_scope_context_management():
175175

176176
@contextmanager
177177
def isolation_scope():
178-
# type: () -> Generator[Scope, None, None]
178+
# type: () -> Generator[PotelScope, None, None]
179179
context = set_value(SENTRY_FORK_ISOLATION_SCOPE_KEY, True)
180180
token = attach(context)
181181
try:
@@ -186,7 +186,7 @@ def isolation_scope():
186186

187187
@contextmanager
188188
def new_scope():
189-
# type: () -> Generator[Scope, None, None]
189+
# type: () -> Generator[PotelScope, None, None]
190190
token = attach(get_current())
191191
try:
192192
yield PotelScope.get_current_scope()
@@ -196,7 +196,7 @@ def new_scope():
196196

197197
@contextmanager
198198
def use_scope(scope):
199-
# type: (Scope) -> Generator[Scope, None, None]
199+
# type: (PotelScope) -> Generator[PotelScope, None, None]
200200
context = set_value(SENTRY_USE_CURRENT_SCOPE_KEY, scope)
201201
token = attach(context)
202202

@@ -208,7 +208,7 @@ def use_scope(scope):
208208

209209
@contextmanager
210210
def use_isolation_scope(isolation_scope):
211-
# type: (Scope) -> Generator[Scope, None, None]
211+
# type: (PotelScope) -> Generator[PotelScope, None, None]
212212
context = set_value(SENTRY_USE_ISOLATION_SCOPE_KEY, isolation_scope)
213213
token = attach(context)
214214

0 commit comments

Comments
 (0)