Skip to content

Commit

Permalink
🛠️ apply pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
getsantry[bot] authored Oct 23, 2024
1 parent 630ee8b commit 90fa41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/sentry/monitors/clock_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _evaluate_tick_decision(tick: datetime):

# Generate previous timestamps to fetch. The first past_ts timestamp is
# also included in this query
historic_timestamps: List[datetime] = [past_ts]
historic_timestamps: list[datetime] = [past_ts]
historic_ts = past_ts

while historic_ts > start_ts:
Expand All @@ -137,7 +137,7 @@ def _evaluate_tick_decision(tick: datetime):
)

past_minute_volume = _int_or_none(volumes.pop(0))
historic_volume: List[int] = [int(v) for v in volumes if v is not None]
historic_volume: list[int] = [int(v) for v in volumes if v is not None]

# Can't make any decisions if we didn't have data for the past minute
if past_minute_volume is None:
Expand Down
2 changes: 1 addition & 1 deletion tests/sentry/monitors/test_clock_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def make_key(offset: timedelta) -> str:
assert minute_3 == "1"


def fill_historic_volume(start: datetime, length: timedelta, step: timedelta, counts: List[int]):
def fill_historic_volume(start: datetime, length: timedelta, step: timedelta, counts: list[int]):
"""
Creates a volume history starting at the `start` and going back `length`,
where each bucket is spaced by `step`s apart.
Expand Down

0 comments on commit 90fa41b

Please sign in to comment.