From 0ab01221668eb6f0c057c56e9fd35853bfb4fae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Wed, 17 Apr 2024 14:23:47 +0200 Subject: [PATCH] fix: Typing errors --- posthog/tasks/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/tasks/email.py b/posthog/tasks/email.py index 81d490b4c89aa..c97c987584ba4 100644 --- a/posthog/tasks/email.py +++ b/posthog/tasks/email.py @@ -193,7 +193,7 @@ async def send_batch_export_run_failure( memberships = OrganizationMembership.objects.select_related("user", "organization").filter( organization_id=team.organization_id ) - all_memberships = await sync_to_async(list)(memberships) + all_memberships: list[OrganizationMembership] = await sync_to_async(list)(memberships) # type: ignore for membership in all_memberships: has_notification_settings_enabled = await sync_to_async(membership.user.notification_settings.get)( "batch_export_run_failure", True