Work around PyQt memory leak on the Krita::documents() method. #579
Annotations
10 errors and 2 warnings
check:
ai_diffusion/document.py#L125
Argument of type "List[Document]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Document]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Document" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Document" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/document.py#L244
Argument of type "List[Document]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Document]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Document" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Document" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/document.py#L310
Argument of type "List[Shape]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Shape]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Shape" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Shape" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/document.py#L317
Argument of type "List[Shape]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Shape]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Shape" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Shape" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/layer.py#L148
Argument of type "List[Node]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Node]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Node" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Node" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/layer.py#L206
Argument of type "List[Node]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Node]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Node" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Node" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/layer.py#L563
Argument of type "List[Node]" cannot be assigned to parameter "l" of type "Sequence[type[QOBJECT@acquire_elements]]" in function "acquire_elements"
"List[Node]" is not assignable to "Sequence[type[QOBJECT@acquire_elements]]"
Type parameter "_T_co@Sequence" is covariant, but "Node" is not a subtype of "type[QOBJECT@acquire_elements]"
Type "Node" is not assignable to type "type[QOBJECT@acquire_elements]" (reportArgumentType)
|
check:
ai_diffusion/util.py#L258
Argument of type "type[QOBJECT@acquire_elements]" cannot be assigned to parameter "obj" of type "wrapper" in function "transferback"
"type[type]" is not assignable to "type[wrapper]" (reportArgumentType)
|
check:
ai_diffusion/util.py#L259
Type "Sequence[type[QOBJECT@acquire_elements]]" is not assignable to return type "list[type[QOBJECT@acquire_elements]]"
"Sequence[type[QOBJECT@acquire_elements]]" is not assignable to "list[type[QOBJECT@acquire_elements]]" (reportReturnType)
|
check
9 errors
|
check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|