Skip to content

Commit cf8e519

Browse files
committed
fix: losing my py
1 parent 65ef423 commit cf8e519

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mypy-baseline.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,22 @@ 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: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4139
posthog/ai/utils.py:0: error: Function "builtins.any" is not valid as a type [valid-type]
4240
posthog/ai/utils.py:0: note: Perhaps you meant "typing.Any" instead of "any"?
4341
posthog/ai/utils.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
42+
sentry_django_example/sentry_django_example/settings.py:0: error: Need type annotation for "ALLOWED_HOSTS" (hint: "ALLOWED_HOSTS: list[<type>] = ...") [var-annotated]
43+
sentry_django_example/sentry_django_example/settings.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "None") [assignment]
4444
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4545
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4646
posthog/ai/openai/openai_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4747
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4848
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
4949
posthog/ai/openai/openai.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
5050
posthog/ai/anthropic/anthropic_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
51-
posthog/ai/anthropic/anthropic_async.py:0: error: Signature of "stream" incompatible with supertype "AsyncMessages" [override]
52-
posthog/ai/anthropic/anthropic_async.py:0: note: Superclass:
53-
posthog/ai/anthropic/anthropic_async.py:0: note: def stream(self, *, max_tokens: int, messages: Iterable[MessageParam], model: Literal['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 = ..., tool_choice: ToolChoiceAutoParam | ToolChoiceAnyParam | ToolChoiceToolParam | NotGiven = ..., tools: Iterable[ToolParam] | NotGiven = ..., extra_headers: Mapping[str, str | Omit] | None = ..., extra_query: Mapping[str, object] | None = ..., extra_body: object | None = ..., timeout: float | Timeout | NotGiven | None = ...) -> AsyncMessageStreamManager
54-
posthog/ai/anthropic/anthropic_async.py:0: note: Subclass:
55-
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]
5651
posthog/ai/anthropic/anthropic_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
5752
posthog/ai/anthropic/anthropic_async.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]
5853
posthog/ai/anthropic/anthropic.py:0: error: Incompatible types in assignment (expression has type "UUID", variable has type "str | None") [assignment]

0 commit comments

Comments
 (0)