Skip to content

Feature manage rich text prompts from wagtail admin #110

Feature manage rich text prompts from wagtail admin

Feature manage rich text prompts from wagtail admin #110

Triggered via pull request December 6, 2023 10:23
Status Failure
Total duration 1m 2s
Artifacts

test.yml

on: pull_request
Matrix: test-postgres
Matrix: test-sqlite
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
lint: src/wagtail_ai/models.py#L86
Argument of type "None" cannot be assigned to parameter "__default" of type "_VT@next" in function "next"   "None" is incompatible with "str" (reportGeneralTypeIssues)
lint: src/wagtail_ai/models.py#L97
Expression of type "TextField" cannot be assigned to return type "str | None"   Type "TextField" cannot be assigned to type "str | None"     "TextField" is incompatible with "str"     "TextField" is incompatible with "None" (reportGeneralTypeIssues)
lint: src/wagtail_ai/views.py#L27
Argument of type "str | None" cannot be assigned to parameter "pre_prompt" of type "str" in function "prompt_with_context"   Type "str | None" cannot be assigned to type "str"     "None" is incompatible with "str" (reportGeneralTypeIssues)
lint: src/wagtail_ai/views.py#L43
Argument of type "str | None" cannot be assigned to parameter "pre_prompt" of type "str" in function "prompt_with_context"   Type "str | None" cannot be assigned to type "str"     "None" is incompatible with "str" (reportGeneralTypeIssues)
lint: src/wagtail_ai/views.py#L68
Cannot access member "DoesNotExist" for type "type[Prompt]"   Member "DoesNotExist" is unknown (reportGeneralTypeIssues)
lint: src/wagtail_ai/views.py#L67
Cannot access member "objects" for type "type[Prompt]"   Member "objects" is unknown (reportGeneralTypeIssues)
lint
6 errors
lint
Unexpected input(s) 'token', valid inputs are ['extra_args']
lint
Unexpected input(s) 'token', valid inputs are ['extra_args']