Skip to content

Commit

Permalink
fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Jun 15, 2023
1 parent e1e247a commit 8c2a6df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sentry/utils/sdk_crashes/sdk_crash_detector.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from abc import ABC, abstractmethod
from typing import Any, Mapping, Sequence


class SDKCrashDetector(ABC):
@abstractmethod
def is_sdk_crash(self) -> bool:
def is_sdk_crash(self, frames: Sequence[Mapping[str, Any]]) -> bool:
"""
Returns true if the stacktrace stems from an SDK crash.
Expand All @@ -12,5 +13,5 @@ def is_sdk_crash(self) -> bool:
raise NotImplementedError

@abstractmethod
def is_sdk_frame(self) -> bool:
def is_sdk_frame(self, frame: Mapping[str, Any]) -> bool:
raise NotImplementedError

0 comments on commit 8c2a6df

Please sign in to comment.