diff --git a/posthog/user_scripts/latest_user_defined_function.xml b/posthog/user_scripts/latest_user_defined_function.xml index 8aa8449bf1a54..9a0b6001786fa 100644 --- a/posthog/user_scripts/latest_user_defined_function.xml +++ b/posthog/user_scripts/latest_user_defined_function.xml @@ -1,5 +1,5 @@ - executable aggregate_funnel diff --git a/posthog/user_scripts/v0/aggregate_funnel_trends.py b/posthog/user_scripts/v0/aggregate_funnel_trends.py index 0aa96b7a19b96..cde3a30928584 100755 --- a/posthog/user_scripts/v0/aggregate_funnel_trends.py +++ b/posthog/user_scripts/v0/aggregate_funnel_trends.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 import sys from dataclasses import dataclass, replace -from typing import Any +from typing import Any, Union from collections.abc import Sequence import json @@ -40,7 +40,7 @@ def calculate_funnel_trends_from_user_events( breakdown_attribution_type: str, funnel_order_type: str, prop_vals: list[Any], - events: Sequence[tuple[float, int, list[str] | int | str, list[int]]], + events: Sequence[tuple[float, int, Union[list[str], int, str], list[int]]], ): default_entered_timestamp = EnteredTimestamp(0, []) # If the attribution mode is a breakdown step, set this to the integer that represents that step diff --git a/posthog/user_scripts/v0/user_defined_function.xml b/posthog/user_scripts/v0/user_defined_function.xml index 8aa8449bf1a54..9a0b6001786fa 100644 --- a/posthog/user_scripts/v0/user_defined_function.xml +++ b/posthog/user_scripts/v0/user_defined_function.xml @@ -1,5 +1,5 @@ - executable aggregate_funnel