Skip to content

Commit

Permalink
replace typing.List and typing.Dict
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaevg committed Apr 25, 2024
1 parent ff42287 commit 6c1cacd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions posthog/tasks/stop_surveys_reached_target.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List, Dict

from itertools import groupby
from django.db.models import UUIDField, DateTimeField, Q
from django.utils import timezone
Expand All @@ -10,8 +8,8 @@


def _get_surveys_response_counts(
surveys_ids: List[UUIDField], team_id: UUIDField, earliest_survey_creation_date: DateTimeField
) -> Dict[str, int]:
surveys_ids: list[UUIDField], team_id: UUIDField, earliest_survey_creation_date: DateTimeField
) -> dict[str, int]:
data = sync_execute(
"""
SELECT JSONExtractString(properties, '$survey_id') as survey_id, count()
Expand Down

0 comments on commit 6c1cacd

Please sign in to comment.