Skip to content

Commit

Permalink
fix: fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeelaudibert committed Dec 13, 2024
1 parent b51585f commit 6a869bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from posthog.hogql_queries.utils.query_date_range import QueryDateRange
from posthog.models.team import Team
from posthog.schema import InsightDateRange, IntervalType
from posthog.schema import DateRange, InsightDateRange, IntervalType
from posthog.utils import (
get_compare_period_dates,
relative_date_parse_with_delta_mapping,
Expand All @@ -15,13 +15,13 @@ class QueryPreviousPeriodDateRange(QueryDateRange):
"""Translation of the raw `date_from` and `date_to` filter values to datetimes."""

_team: Team
_date_range: Optional[InsightDateRange]
_date_range: Optional[InsightDateRange | DateRange]
_interval: Optional[IntervalType]
_now_without_timezone: datetime

def __init__(
self,
date_range: Optional[InsightDateRange],
date_range: Optional[InsightDateRange | DateRange],
team: Team,
interval: Optional[IntervalType],
now: datetime,
Expand Down

0 comments on commit 6a869bb

Please sign in to comment.