@@ -175,7 +175,7 @@ def setup_scope_context_management():
175175
176176@contextmanager
177177def 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
188188def 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
198198def 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
210210def 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