From 94be894aa143c9a81578f7875f99d2d5f6aee697 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Thu, 4 Apr 2024 10:30:04 +0200 Subject: [PATCH] Fix baseline --- mypy-baseline.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index c1c0ddab69e082..e12d8048c9914c 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -1,11 +1,6 @@ posthog/temporal/common/utils.py:0: error: Argument 1 to "abstractclassmethod" has incompatible type "Callable[[HeartbeatDetails, Any], Any]"; expected "Callable[[type[Never], Any], Any]" [arg-type] posthog/temporal/common/utils.py:0: note: This is likely because "from_activity" has named arguments: "cls". Consider marking them positional-only posthog/temporal/common/utils.py:0: error: Argument 2 to "__get__" of "classmethod" has incompatible type "type[HeartbeatType]"; expected "type[Never]" [arg-type] -env/lib/python3.10/site-packages/snowflake/connector/converter.py:0: error: Library stubs not installed for "tzlocal" [import-untyped] -env/lib/python3.10/site-packages/snowflake/connector/converter.py:0: note: Hint: "python3 -m pip install types-tzlocal" -env/lib/python3.10/site-packages/snowflake/connector/converter.py:0: note: (or run "mypy --install-types" to install all missing stub packages) -env/lib/python3.10/site-packages/snowflake/connector/converter.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports -env/lib/python3.10/site-packages/snowflake/connector/arrow_context.py:0: error: Library stubs not installed for "tzlocal" [import-untyped] posthog/temporal/data_imports/pipelines/zendesk/talk_api.py:0: error: Incompatible types in assignment (expression has type "None", variable has type "str") [assignment] posthog/temporal/data_imports/pipelines/zendesk/helpers.py:0: error: Argument 1 to "ensure_pendulum_datetime" has incompatible type "DateTime | Date | datetime | date | str | float | int | None"; expected "DateTime | Date | datetime | date | str | float | int" [arg-type] posthog/temporal/data_imports/pipelines/zendesk/helpers.py:0: error: Argument 1 to "ensure_pendulum_datetime" has incompatible type "str | None"; expected "DateTime | Date | datetime | date | str | float | int" [arg-type] @@ -809,18 +804,6 @@ posthog/hogql/database/schema/test/test_channel_type.py:0: error: Value of type posthog/hogql/database/schema/test/test_channel_type.py:0: error: Value of type "list[Any] | None" is not indexable [index] posthog/hogql/database/schema/event_sessions.py:0: error: Statement is unreachable [unreachable] posthog/api/organization_member.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] -posthog/api/fields.py:0: error: List item 0 has incompatible type "type[PydanticModelValidator]"; expected "Callable[[dict[str, Any] | list[dict[str, Any]]], None] | ContextValidator[dict[str, Any] | list[dict[str, Any]]]" [list-item] -posthog/api/fields.py:0: note: "PydanticModelValidator" is missing following "ContextValidator" protocol member: -posthog/api/fields.py:0: note: requires_context -posthog/api/fields.py:0: note: Following member(s) of "PydanticModelValidator" have conflicts: -posthog/api/fields.py:0: note: Expected: -posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None -posthog/api/fields.py:0: note: Got: -posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator -posthog/api/fields.py:0: note: Expected: -posthog/api/fields.py:0: note: def __call__(dict[str, Any] | list[dict[str, Any]], Field[Any, Any, Any, Any], /) -> None -posthog/api/fields.py:0: note: Got: -posthog/api/fields.py:0: note: def __init__(model: Any) -> PydanticModelValidator ee/api/role.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] ee/clickhouse/views/insights.py:0: error: Metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases [misc] posthog/queries/trends/test/test_person.py:0: error: "str" has no attribute "get" [attr-defined]