Skip to content

Commit af129e8

Browse files
committed
Reformat
1 parent 540012a commit af129e8

File tree

7 files changed

+30
-10
lines changed

7 files changed

+30
-10
lines changed

sentry_sdk/integrations/arq.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def event_processor(event: "Event", hint: "Hint") -> "Optional[Event]":
157157

158158

159159
def _wrap_coroutine(name: str, coroutine: "WorkerCoroutine") -> "WorkerCoroutine":
160-
async def _sentry_coroutine(ctx: "Dict[Any, Any]", *args: "Any", **kwargs: "Any") -> "Any":
160+
async def _sentry_coroutine(
161+
ctx: "Dict[Any, Any]", *args: "Any", **kwargs: "Any"
162+
) -> "Any":
161163
integration = sentry_sdk.get_client().get_integration(ArqIntegration)
162164
if integration is None:
163165
return await coroutine(ctx, *args, **kwargs)

sentry_sdk/integrations/asyncpg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def _inner(*args: "Any", **kwargs: "Any") -> "T": # noqa: N807
153153
return _inner
154154

155155

156-
def _wrap_connect_addr(f: "Callable[..., Awaitable[T]]") -> "Callable[..., Awaitable[T]]":
156+
def _wrap_connect_addr(
157+
f: "Callable[..., Awaitable[T]]",
158+
) -> "Callable[..., Awaitable[T]]":
157159
async def _inner(*args: "Any", **kwargs: "Any") -> "T":
158160
if sentry_sdk.get_client().get_integration(AsyncPGIntegration) is None:
159161
return await f(*args, **kwargs)

sentry_sdk/integrations/executing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class ExecutingIntegration(Integration):
2222
@staticmethod
2323
def setup_once() -> None:
2424
@add_global_event_processor
25-
def add_executing_info(event: "Event", hint: "Optional[Hint]") -> "Optional[Event]":
25+
def add_executing_info(
26+
event: "Event", hint: "Optional[Hint]"
27+
) -> "Optional[Event]":
2628
if sentry_sdk.get_client().get_integration(ExecutingIntegration) is None:
2729
return event
2830

sentry_sdk/integrations/google_genai/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def setup_once() -> None:
6464

6565
def _wrap_generate_content_stream(f: "Callable[..., Any]") -> "Callable[..., Any]":
6666
@wraps(f)
67-
def new_generate_content_stream(self: "Any", *args: "Any", **kwargs: "Any") -> "Any":
67+
def new_generate_content_stream(
68+
self: "Any", *args: "Any", **kwargs: "Any"
69+
) -> "Any":
6870
integration = sentry_sdk.get_client().get_integration(GoogleGenAIIntegration)
6971
if integration is None:
7072
return f(self, *args, **kwargs)
@@ -256,7 +258,9 @@ def new_generate_content(self: "Any", *args: "Any", **kwargs: "Any") -> "Any":
256258

257259
def _wrap_async_generate_content(f: "Callable[..., Any]") -> "Callable[..., Any]":
258260
@wraps(f)
259-
async def new_async_generate_content(self: "Any", *args: "Any", **kwargs: "Any") -> "Any":
261+
async def new_async_generate_content(
262+
self: "Any", *args: "Any", **kwargs: "Any"
263+
) -> "Any":
260264
integration = sentry_sdk.get_client().get_integration(GoogleGenAIIntegration)
261265
if integration is None:
262266
return await f(self, *args, **kwargs)
@@ -333,7 +337,9 @@ def new_embed_content(self: "Any", *args: "Any", **kwargs: "Any") -> "Any":
333337

334338
def _wrap_async_embed_content(f: "Callable[..., Any]") -> "Callable[..., Any]":
335339
@wraps(f)
336-
async def new_async_embed_content(self: "Any", *args: "Any", **kwargs: "Any") -> "Any":
340+
async def new_async_embed_content(
341+
self: "Any", *args: "Any", **kwargs: "Any"
342+
) -> "Any":
337343
integration = sentry_sdk.get_client().get_integration(GoogleGenAIIntegration)
338344
if integration is None:
339345
return await f(self, *args, **kwargs)

sentry_sdk/integrations/grpc/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def patched_intercept_channel(
8080
return patched_intercept_channel # type: ignore
8181

8282

83-
def _wrap_channel_async(func: "Callable[P, AsyncChannel]") -> "Callable[P, AsyncChannel]":
83+
def _wrap_channel_async(
84+
func: "Callable[P, AsyncChannel]",
85+
) -> "Callable[P, AsyncChannel]":
8486
"Wrapper for asynchronous secure and insecure channel."
8587

8688
@wraps(func)

sentry_sdk/integrations/pure_eval.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class PureEvalIntegration(Integration):
3737
@staticmethod
3838
def setup_once() -> None:
3939
@add_global_event_processor
40-
def add_executing_info(event: "Event", hint: "Optional[Hint]") -> "Optional[Event]":
40+
def add_executing_info(
41+
event: "Event", hint: "Optional[Hint]"
42+
) -> "Optional[Event]":
4143
if sentry_sdk.get_client().get_integration(PureEvalIntegration) is None:
4244
return event
4345

sentry_sdk/integrations/starlette.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,9 @@ async def _sentry_async_func(*args: "Any", **kwargs: "Any") -> "Any":
456456
def _make_request_event_processor(
457457
req: "Any", integration: "Any"
458458
) -> "Callable[[Event, dict[str, Any]], Event]":
459-
def event_processor(event: "Event", hint: "Dict[str, Any]") -> "Event":
459+
def event_processor(
460+
event: "Event", hint: "Dict[str, Any]"
461+
) -> "Event":
460462
# Add info from request to event
461463
request_info = event.get("request", {})
462464
if info:
@@ -509,7 +511,9 @@ def _sentry_sync_func(*args: "Any", **kwargs: "Any") -> "Any":
509511
def _make_request_event_processor(
510512
req: "Any", integration: "Any"
511513
) -> "Callable[[Event, dict[str, Any]], Event]":
512-
def event_processor(event: "Event", hint: "dict[str, Any]") -> "Event":
514+
def event_processor(
515+
event: "Event", hint: "dict[str, Any]"
516+
) -> "Event":
513517
# Extract information from request
514518
request_info = event.get("request", {})
515519
if cookies:

0 commit comments

Comments
 (0)