We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 431bcf5 commit e3dd4c5Copy full SHA for e3dd4c5
sentry_sdk/integrations/concurrent.py
@@ -17,18 +17,14 @@
17
class ConcurrentIntegration(Integration):
18
identifier = "concurrent"
19
20
- def __init__(self, record_exceptions_on_futures=True):
21
- # type: (bool) -> None
22
- self.record_exceptions_on_futures = record_exceptions_on_futures
23
-
24
@staticmethod
25
def setup_once():
26
# type: () -> None
27
ThreadPoolExecutor.submit = _wrap_submit_call(ThreadPoolExecutor.submit) # type: ignore
28
29
30
def _wrap_submit_call(func):
31
- # type: (Any) -> Any
+ # type: (Callable[..., Future[T]]) -> Callable[..., Future[T]]
32
"""
33
Wrap submit call to propagate scopes on task submission.
34
0 commit comments