From 6c1cacdfc8eef0f7b08034ec69e0c17e5192acfc Mon Sep 17 00:00:00 2001 From: Nikita Vorobev Date: Thu, 25 Apr 2024 19:39:16 +0100 Subject: [PATCH] replace typing.List and typing.Dict --- posthog/tasks/stop_surveys_reached_target.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/posthog/tasks/stop_surveys_reached_target.py b/posthog/tasks/stop_surveys_reached_target.py index 9bcdb45085ee1..7c144010e5787 100644 --- a/posthog/tasks/stop_surveys_reached_target.py +++ b/posthog/tasks/stop_surveys_reached_target.py @@ -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 @@ -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()