FS 121: materiality chat agent #341
type-check-backend.yml
on: pull_request
Type Checking Backend
36s
Annotations
5 errors and 1 warning
Type Checking Backend:
backend/src/llm/openai.py#L92
Method "upload_files" overrides class "LLMFileUploadManager" in an incompatible manner
Return type mismatch: base method returns type "Coroutine[Any, Any, None]", override returns type "Coroutine[Any, Any, list[str]]"
"Coroutine[Any, Any, list[str]]" is not assignable to "Coroutine[Any, Any, None]"
Type parameter "_ReturnT_co_nd@Coroutine" is covariant, but "list[str]" is not a subtype of "None"
"list[str]" is not assignable to "None" (reportIncompatibleMethodOverride)
|
Type Checking Backend:
backend/src/session/llm_file_upload.py#L21
Type "Any | list[dict[str, str]] | None" is not assignable to return type "list[dict[str, str]]"
Type "Any | list[dict[str, str]] | None" is not assignable to type "list[dict[str, str]]"
"None" is not assignable to "list[dict[str, str]]" (reportReturnType)
|
Type Checking Backend:
backend/src/session/llm_file_upload.py#L21
Argument of type "ResponseT" cannot be assigned to parameter "json_string" of type "str" in function "try_parse_to_json"
Type "ResponseT" is not assignable to type "str"
"Awaitable[Any]" is not assignable to "str" (reportArgumentType)
|
Type Checking Backend:
backend/src/session/llm_file_upload.py#L41
Argument of type "LLMFileUpload" cannot be assigned to parameter "object" of type "dict[str, str]" in function "append"
"LLMFileUpload" is not assignable to "dict[str, str]" (reportArgumentType)
|
Type Checking Backend
4 errors
|
Type Checking Backend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|