diff --git a/posthog/hogql/ast.py b/posthog/hogql/ast.py index 793d40e537d30..f0af01ea430eb 100644 --- a/posthog/hogql/ast.py +++ b/posthog/hogql/ast.py @@ -309,7 +309,7 @@ class AsteriskType(Type): @dataclass(kw_only=True) class FieldTraverserType(Type): - chain: List[str | int] + chain: List[str | int] | List[str] table_type: TableOrSelectType diff --git a/posthog/hogql/database/models.py b/posthog/hogql/database/models.py index 9d09a197cc0c9..d2da7868a7f9c 100644 --- a/posthog/hogql/database/models.py +++ b/posthog/hogql/database/models.py @@ -65,7 +65,7 @@ class ExpressionField(DatabaseField): class FieldTraverser(FieldOrTable): model_config = ConfigDict(extra="forbid") - chain: List[str | int] + chain: List[str] class Table(FieldOrTable):