Skip to content

Commit 2857193

Browse files
committed
update baseline
1 parent f11cf30 commit 2857193

File tree

1 file changed

+48
-12
lines changed

1 file changed

+48
-12
lines changed

mypy-baseline.txt

Lines changed: 48 additions & 12 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]
13
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]
34
posthog/utils.py:0: error: Statement is unreachable [unreachable]
45
posthog/utils.py:0: error: Argument 1 to "join" of "str" has incompatible type "AttributeError"; expected "Iterable[str]" [arg-type]
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]
86
posthog/request.py:0: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
7+
posthog/exception_integrations/django.py:0: error: Incompatible default for argument "request" (default has type "None", argument has type "WSGIRequest") [assignment]
8+
posthog/exception_integrations/django.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
9+
posthog/exception_integrations/django.py:0: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
910
posthog/consumer.py:0: error: Name "Empty" already defined (possibly by an import) [no-redef]
1011
posthog/consumer.py:0: error: Need type annotation for "items" (hint: "items: list[<type>] = ...") [var-annotated]
1112
posthog/consumer.py:0: error: Unsupported operand types for <= ("int" and "str") [operator]
1213
posthog/consumer.py:0: note: Right operand is of type "int | str"
1314
posthog/consumer.py:0: error: Unsupported operand types for < ("str" and "int") [operator]
1415
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]
1716
posthog/feature_flags.py:0: error: Unused "type: ignore" comment [unused-ignore]
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"
20-
posthog/client.py:0: note: (or run "mypy --install-types" to install all missing stub packages)
21-
posthog/client.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
2217
posthog/client.py:0: error: Library stubs not installed for "six" [import-untyped]
2318
posthog/client.py:0: note: Hint: "python3 -m pip install types-six"
19+
posthog/client.py:0: note: (or run "mypy --install-types" to install all missing stub packages)
20+
posthog/client.py:0: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
2421
posthog/client.py:0: error: Name "queue" already defined (by an import) [no-redef]
2522
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,10 +32,46 @@ 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]
3537
posthog/ai/utils.py:0: error: Need type annotation for "output" (hint: "output: list[<type>] = ...") [var-annotated]
3638
posthog/ai/utils.py:0: error: Function "builtins.any" is not valid as a type [valid-type]
3739
posthog/ai/utils.py:0: note: Perhaps you meant "typing.Any" instead of "any"?
3840
posthog/ai/utils.py:0: error: Function "builtins.any" is not valid as a type [valid-type]
3941
posthog/ai/utils.py:0: note: Perhaps you meant "typing.Any" instead of "any"?
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]
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/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "Chat") [assignment]
53+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedChat" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
54+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "Embeddings") [assignment]
55+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedEmbeddings" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
56+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "Beta") [assignment]
57+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedBeta" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
58+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "Responses") [assignment]
59+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedResponses" has incompatible type "AzureOpenAI"; expected "OpenAI" [arg-type]
60+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedChat", variable has type "AsyncChat") [assignment]
61+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedChat" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
62+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedEmbeddings", variable has type "AsyncEmbeddings") [assignment]
63+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedEmbeddings" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
64+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedBeta", variable has type "AsyncBeta") [assignment]
65+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedBeta" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
66+
posthog/ai/openai/openai_providers.py:0: error: Incompatible types in assignment (expression has type "WrappedResponses", variable has type "AsyncResponses") [assignment]
67+
posthog/ai/openai/openai_providers.py:0: error: Argument 1 to "WrappedResponses" has incompatible type "AsyncAzureOpenAI"; expected "AsyncOpenAI" [arg-type]
68+
posthog/ai/langchain/callbacks.py:0: error: Non-overlapping container check (element type: "str", container item type: "Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk") [comparison-overlap]
69+
posthog/ai/langchain/callbacks.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload]
70+
posthog/ai/langchain/callbacks.py:0: note: Possible overload variants:
71+
posthog/ai/langchain/callbacks.py:0: note: def __getitem__(self, SupportsIndex, /) -> Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk
72+
posthog/ai/langchain/callbacks.py:0: note: def __getitem__(self, slice, /) -> list[Generation | ChatGeneration | GenerationChunk | ChatGenerationChunk]
73+
posthog/ai/anthropic/anthropic_async.py:0: error: Signature of "stream" incompatible with supertype "AsyncMessages" [override]
74+
posthog/ai/anthropic/anthropic_async.py:0: note: Superclass:
75+
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
76+
posthog/ai/anthropic/anthropic_async.py:0: note: Subclass:
77+
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]

0 commit comments

Comments
 (0)