Feature manage rich text prompts from wagtail admin #110
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']
|