Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeelaudibert committed Dec 3, 2024
1 parent 9642d1e commit a8e5ce6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion mypy-baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ posthog/api/survey.py:0: error: Incompatible types in assignment (expression has
posthog/api/survey.py:0: error: Item "list[_ErrorFullDetails]" of "_FullDetailDict | list[_ErrorFullDetails] | dict[str, _ErrorFullDetails]" has no attribute "get" [union-attr]
posthog/api/survey.py:0: error: Item "object" of "object | Any" has no attribute "__iter__" (not iterable) [union-attr]
posthog/hogql_queries/web_analytics/web_overview.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "datetime" [attr-defined]
posthog/hogql_queries/web_analytics/top_clicks.py:0: error: Module "django.utils.timezone" does not explicitly export attribute "datetime" [attr-defined]
posthog/api/user.py:0: error: Module has no attribute "utc" [attr-defined]
posthog/api/user.py:0: error: Module has no attribute "utc" [attr-defined]
posthog/api/user.py:0: error: "User" has no attribute "social_auth" [attr-defined]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def period_aggregate(self, function_name, column_name, start, end, alias=None, p
expr = ast.Call(name=function_name, params=params, args=[ast.Field(chain=[column_name])])

if alias is not None:
expr = ast.Alias(alias=alias, expr=expr)
return ast.Alias(alias=alias, expr=expr)

return expr

Expand Down

0 comments on commit a8e5ce6

Please sign in to comment.