Skip to content

Commit 62e0411

Browse files
committed
add GroupingComponent typevar
1 parent bfdd072 commit 62e0411

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sentry/grouping/component.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections.abc import Generator, Iterator, Sequence
4-
from typing import Any
4+
from typing import Any, TypeVar
55

66
from sentry.grouping.utils import hash_from_values
77

@@ -171,3 +171,6 @@ def as_dict(self) -> dict[str, Any]:
171171

172172
def __repr__(self) -> str:
173173
return f"{self.__class__.__name__}({self.id!r}, hint={self.hint!r}, contributes={self.contributes!r}, values={self.values!r})"
174+
175+
176+
GroupingComponent = TypeVar("GroupingComponent", bound=BaseGroupingComponent)

0 commit comments

Comments
 (0)