Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Oct 16, 2023
1 parent 5de1214 commit 2e9cac2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
WebTopClicksQuery,
WebOverviewStatsQuery,
WebStatsTableQuery,
HogQLPropertyFilter,
)

WebQueryNode = Union[
Expand All @@ -37,11 +38,11 @@ def query_date_range(self):
return QueryDateRange(date_range=self.query.dateRange, team=self.team, interval=None, now=datetime.now())

@cached_property
def pathname_property_filter(self) -> Optional[EventPropertyFilter]:
def pathname_property_filter(self) -> Optional[Union[EventPropertyFilter, HogQLPropertyFilter]]:
return next((p for p in self.query.properties if p.key == "$pathname"), None)

@cached_property
def property_filters_without_pathname(self) -> List[EventPropertyFilter]:
def property_filters_without_pathname(self) -> List[Union[EventPropertyFilter, HogQLPropertyFilter]]:
return [p for p in self.query.properties if p.key != "$pathname"]

def session_where(self):
Expand Down

0 comments on commit 2e9cac2

Please sign in to comment.