Skip to content

Commit fec2311

Browse files
committed
mypy
1 parent 744c336 commit fec2311

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/sentry/tasks/test_post_process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ class ServiceHookPayloadMatcher:
103103
def __init__(self, event: Event):
104104
self.event = event
105105

106-
def __eq__(self, other: str) -> bool:
106+
def __eq__(self, other: Any) -> bool:
107107
assert isinstance(other, str), "other should be a string"
108+
assert self.event.group
109+
108110
payload = json.loads(other)
109111
assert payload["event"]["id"] == self.event.event_id
110112
assert payload["group"]["id"] == str(self.event.group.id)

0 commit comments

Comments
 (0)