Skip to content

Commit c631247

Browse files
grichaclaude
andcommitted
fix(integrations): Use Any instead of object in capturing wrapper
Mypy rejects `*args: object` when the wrapped function has specific parameter types. Switch to `Any` so the forwarding call type-checks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7555f30 commit c631247

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/sentry/integrations/msteams/test_action_state_change.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import time
2+
from typing import Any
23
from unittest.mock import MagicMock, patch
34

45
import orjson
@@ -371,7 +372,7 @@ def test_action_submitted_sets_viewer_context(self, verify: MagicMock) -> None:
371372

372373
original_refresh = Group.refresh_from_db
373374

374-
def capturing_refresh(self_group: object, *args: object, **kwargs: object) -> None:
375+
def capturing_refresh(self_group: Any, *args: Any, **kwargs: Any) -> None:
375376
captured_contexts.append(get_viewer_context())
376377
return original_refresh(self_group, *args, **kwargs)
377378

0 commit comments

Comments
 (0)