Skip to content

Commit c605974

Browse files
committed
revert to baseline
1 parent b9e1187 commit c605974

File tree

1 file changed

+12
-48
lines changed

1 file changed

+12
-48
lines changed

mypy-baseline.txt

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
setup_analytics.py:0: error: Incompatible import of "setup" (imported name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(list[distutils.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[distutils.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(Literal[0, 1] | bool, 'include_package_data'), DefaultNamedArg(list[str], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], distutils.dist.Distribution]", local name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(Sequence[setuptools.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[setuptools.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[setuptools._distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(bool, 'include_package_data'), DefaultNamedArg(list[str], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], None]") [assignment]
2-
setup.py:0: error: Incompatible import of "setup" (imported name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(list[distutils.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[distutils.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(Literal[0, 1] | bool, 'include_package_data'), DefaultNamedArg(list[str], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], distutils.dist.Distribution]", local name has type "Callable[[DefaultNamedArg(str, 'name'), DefaultNamedArg(str, 'version'), DefaultNamedArg(str, 'description'), DefaultNamedArg(str, 'long_description'), DefaultNamedArg(str, 'author'), DefaultNamedArg(str, 'author_email'), DefaultNamedArg(str, 'maintainer'), DefaultNamedArg(str, 'maintainer_email'), DefaultNamedArg(str, 'url'), DefaultNamedArg(str, 'download_url'), DefaultNamedArg(list[str], 'packages'), DefaultNamedArg(list[str], 'py_modules'), DefaultNamedArg(list[str], 'scripts'), DefaultNamedArg(Sequence[setuptools.extension.Extension], 'ext_modules'), DefaultNamedArg(list[str], 'classifiers'), DefaultNamedArg(type[setuptools.dist.Distribution], 'distclass'), DefaultNamedArg(str, 'script_name'), DefaultNamedArg(list[str], 'script_args'), DefaultNamedArg(Mapping[str, Any], 'options'), DefaultNamedArg(str, 'license'), DefaultNamedArg(list[str] | str, 'keywords'), DefaultNamedArg(list[str] | str, 'platforms'), DefaultNamedArg(Mapping[str, type[setuptools._distutils.cmd.Command]], 'cmdclass'), DefaultNamedArg(list[tuple[str, list[str]]], 'data_files'), DefaultNamedArg(Mapping[str, str], 'package_dir'), DefaultNamedArg(list[str], 'obsoletes'), DefaultNamedArg(list[str], 'provides'), DefaultNamedArg(list[str], 'requires'), DefaultNamedArg(list[str], 'command_packages'), DefaultNamedArg(Mapping[str, Mapping[str, tuple[Any, Any]]], 'command_options'), DefaultNamedArg(Mapping[str, list[str]], 'package_data'), DefaultNamedArg(bool, 'include_package_data'), DefaultNamedArg(list[str], 'libraries'), DefaultNamedArg(list[str], 'headers'), DefaultNamedArg(str, 'ext_package'), DefaultNamedArg(list[str], 'include_dirs'), DefaultNamedArg(str, 'password'), DefaultNamedArg(str, 'fullname'), KwArg(Any)], None]") [assignment]
31
posthog/utils.py:0: error: Library stubs not installed for "six" [import-untyped]
2+
posthog/utils.py:0: error: Library stubs not installed for "dateutil.tz" [import-untyped]
43
posthog/utils.py:0: error: Statement is unreachable [unreachable]
54
posthog/utils.py:0: error: Argument 1 to "join" of "str" has incompatible type "AttributeError"; expected "Iterable[str]" [arg-type]
6-
posthog/exception_integrations/django.py:0: error: Incompatible default for argument "request" (default has type "None", argument has type "WSGIRequest") [assignment]
7-
posthog/exception_integrations/django.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
8-
posthog/exception_integrations/django.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
5+
posthog/request.py:0: error: Library stubs not installed for "requests" [import-untyped]
6+
posthog/request.py:0: note: Hint: "python3 -m pip install types-requests"
7+
posthog/request.py:0: error: Library stubs not installed for "dateutil.tz" [import-untyped]
98
posthog/request.py:0: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
109
posthog/consumer.py:0: error: Name "Empty" already defined (possibly by an import) [no-redef]
1110
posthog/consumer.py:0: error: Need type annotation for "items" (hint: "items: list[<type>] = ...") [var-annotated]
1211
posthog/consumer.py:0: error: Unsupported operand types for <= ("int" and "str") [operator]
1312
posthog/consumer.py:0: note: Right operand is of type "int | str"
1413
posthog/consumer.py:0: error: Unsupported operand types for < ("str" and "int") [operator]
1514
posthog/consumer.py:0: note: Left operand is of type "int | str"
15+
posthog/feature_flags.py:0: error: Library stubs not installed for "dateutil" [import-untyped]
16+
posthog/feature_flags.py:0: error: Library stubs not installed for "dateutil.relativedelta" [import-untyped]
1617
posthog/feature_flags.py:0: error: Unused "type: ignore" comment [unused-ignore]
17-
posthog/client.py:0: error: Library stubs not installed for "six" [import-untyped]
18-
posthog/client.py:0: note: Hint: "python3 -m pip install types-six"
18+
posthog/client.py:0: error: Library stubs not installed for "dateutil.tz" [import-untyped]
19+
posthog/client.py:0: note: Hint: "python3 -m pip install types-python-dateutil"
1920
posthog/client.py:0: note: (or run "mypy --install-types" to install all missing stub packages)
2021
posthog/client.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
22+
posthog/client.py:0: error: Library stubs not installed for "six" [import-untyped]
23+
posthog/client.py:0: note: Hint: "python3 -m pip install types-six"
2124
posthog/client.py:0: error: Name "queue" already defined (by an import) [no-redef]
2225
posthog/client.py:0: error: Need type annotation for "queue" [var-annotated]
23-
posthog/client.py:0: error: Value of type "Response" is not indexable [index]
24-
posthog/client.py:0: error: Value of type "Response" is not indexable [index]
25-
posthog/client.py:0: error: Value of type "Response" is not indexable [index]
2626
posthog/client.py:0: error: Item "None" of "Any | None" has no attribute "get" [union-attr]
2727
simulator.py:0: error: Unexpected keyword argument "anonymous_id" for "capture" [call-arg]
2828
posthog/__init__.py:0: note: "capture" defined here
@@ -32,46 +32,10 @@ simulator.py:0: error: Unexpected keyword argument "traits" for "identify" [cal
3232
posthog/__init__.py:0: note: "identify" defined here
3333
example.py:0: error: Statement is unreachable [unreachable]
3434
posthog/sentry/posthog_integration.py:0: error: Statement is unreachable [unreachable]
35-
sentry_django_example/sentry_django_example/settings.py:0: error: Need type annotation for "ALLOWED_HOSTS" (hint: "ALLOWED_HOSTS: list[<type>] = ...") [var-annotated]
36-
sentry_django_example/sentry_django_example/settings.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
3735
posthog/ai/utils.py:0: error: Need type annotation for "output" (hint: "output: list[<type>] = ...") [var-annotated]
3836
posthog/ai/utils.py:0: error: Function "builtins.any" is not valid as a type [valid-type]
3937
posthog/ai/utils.py:0: note: Perhaps you meant "typing.Any" instead of "any"?
4038
posthog/ai/utils.py:0: error: Function "builtins.any" is not valid as a type [valid-type]
4139
posthog/ai/utils.py:0: note: Perhaps you meant "typing.Any" instead of "any"?
42-
posthog/ai/gemini/gemini.py:0: error: Module "google" has no attribute "genai" [attr-defined]
43-
posthog/ai/gemini/gemini.py:0: error: Argument 8 to "call_llm_and_track_usage" has incompatible type "str"; expected "URL" [arg-type]
44-
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "AsyncChat") [assignment]
45-
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "AsyncEmbeddings") [assignment]
46-
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "AsyncBeta") [assignment]
47-
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "AsyncResponses") [assignment]
48-
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "Chat") [assignment]
49-
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "Embeddings") [assignment]
50-
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "Beta") [assignment]
51-
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "Responses") [assignment]
52-
posthog/ai/anthropic/anthropic_async.py:0: error: Signature of "stream" incompatible with supertype "AsyncMessages" [override]
53-
posthog/ai/anthropic/anthropic_async.py:0: note: Superclass:
54-
posthog/ai/anthropic/anthropic_async.py:0: note: def stream(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Literal['claude-3-7-sonnet-latest', 'claude-3-7-sonnet-20250219', 'claude-3-5-haiku-latest', 'claude-3-5-haiku-20241022', 'claude-3-5-sonnet-latest', 'claude-3-5-sonnet-20241022', 'claude-3-5-sonnet-20240620', 'claude-3-opus-latest', 'claude-3-opus-20240229', 'claude-3-sonnet-20240229', 'claude-3-haiku-20240307', 'claude-2.1', 'claude-2.0'] | str, metadata: MetadataParam | NotGiven = ..., stop_sequences: list[str] | NotGiven = ..., system: str | Iterable[TextBlockParam] | NotGiven = ..., temperature: float | NotGiven = ..., top_k: int | NotGiven = ..., top_p: float | NotGiven = ..., thinking: ThinkingConfigEnabledParam | ThinkingConfigDisabledParam | NotGiven = ..., tool_choice: ToolChoiceAutoParam | ToolChoiceAnyParam | ToolChoiceToolParam | ToolChoiceNoneParam | NotGiven = ..., tools: Iterable[ToolParam | ToolBash20250124Param | ToolTextEditor20250124Param] | NotGiven = ..., extra_headers: Mapping[str, str | Omit] | None = ..., extra_query: Mapping[str, object] | None = ..., extra_body: object | None = ..., timeout: float | Timeout | NotGiven | None = ...) -> AsyncMessageStreamManager
55-
posthog/ai/anthropic/anthropic_async.py:0: note: Subclass:
56-
posthog/ai/anthropic/anthropic_async.py:0: note: def stream(self, posthog_distinct_id: str | None = ..., posthog_trace_id: str | None = ..., posthog_properties: dict[str, Any] | None = ..., posthog_privacy_mode: bool = ..., posthog_groups: dict[str, Any] | None = ..., **kwargs: Any) -> Coroutine[Any, Any, Any]
57-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "Chat") [assignment]
58-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedChat" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
59-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "Embeddings") [assignment]
60-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedEmbeddings" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
61-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "Beta") [assignment]
62-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedBeta" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
63-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "Responses") [assignment]
64-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedResponses" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
65-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "AsyncChat") [assignment]
66-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedChat" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
67-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "AsyncEmbeddings") [assignment]
68-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedEmbeddings" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
69-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "AsyncBeta") [assignment]
70-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedBeta" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
71-
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "AsyncResponses") [assignment]
72-
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedResponses" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
73-
posthog/ai/langchain/callbacks.py:0: error: Non-overlapping container check (element type: "str", container item type: "Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk") [comparison-overlap]
74-
posthog/ai/langchain/callbacks.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload]
75-
posthog/ai/langchain/callbacks.py:0: note: Possible overload variants:
76-
posthog/ai/langchain/callbacks.py:0: note: def __getitem__(self, SupportsIndex, /) -> Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk
77-
posthog/ai/langchain/callbacks.py:0: note: def __getitem__(self, slice, /) -> list[Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk]
40+
sentry_django_example/sentry_django_example/settings.py:0: error: Need type annotation for "ALLOWED_HOSTS" (hint: "ALLOWED_HOSTS: list[<type>] = ...") [var-annotated]
41+
sentry_django_example/sentry_django_example/settings.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]

0 commit comments

Comments
 (0)