From 08f27b2db9ab7d228ab7dc44d8e0785e6982b6fe Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 26 Mar 2024 15:31:02 -0400 Subject: [PATCH] types --- posthog/hogql/ast.py | 2 +- posthog/hogql/database/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):