Skip to content

Commit 7621cfc

Browse files
committed
cleanup
1 parent 08600fd commit 7621cfc

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

src/sentry/relay/config/__init__.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import uuid
55
from collections.abc import Iterable, Mapping, MutableMapping, Sequence
66
from datetime import datetime, timezone
7-
from typing import Any, Literal, NotRequired, TypedDict
7+
from typing import Any, Literal, TypedDict
88

99
import sentry_sdk
1010
from sentry_sdk import capture_exception
@@ -217,26 +217,6 @@ def get_quotas(project: Project, keys: Iterable[ProjectKey] | None = None) -> li
217217
return computed_quotas
218218

219219

220-
class SlidingWindow(TypedDict):
221-
windowSeconds: int
222-
granularitySeconds: int
223-
224-
225-
class CardinalityLimit(TypedDict):
226-
id: str
227-
passive: NotRequired[bool]
228-
window: SlidingWindow
229-
limit: int
230-
scope: Literal["organization", "project"]
231-
namespace: str | None
232-
233-
234-
class CardinalityLimitOption(TypedDict):
235-
rollout_rate: NotRequired[float]
236-
limit: CardinalityLimit
237-
projects: NotRequired[list[int]]
238-
239-
240220
def get_project_config(
241221
project: Project, project_keys: Iterable[ProjectKey] | None = None
242222
) -> ProjectConfig:

0 commit comments

Comments
 (0)