part of test cases of run_all_tests.sh passed #18
python-type-check.yml
on: push
pyright type-check
1m 45s
Annotations
6 errors and 1 warning
|
pyright type-check
5 errors
|
|
pyright type-check:
examples/clip/convert_bgevl_to_gguf.py#L264
Type "tuple[None, None]" is not assignable to return type "Tuple[str | None, str]"
"None" is not assignable to "str" (reportReturnType)
|
|
pyright type-check:
examples/clip/convert_bgevl_to_gguf.py#L205
Argument of type "list[int]" cannot be assigned to parameter "tokens" of type "Sequence[str] | Sequence[bytes] | Sequence[bytearray]" in function "add_token_list"
Type "list[int]" is not assignable to type "Sequence[str] | Sequence[bytes] | Sequence[bytearray]"
"list[int]" is not assignable to "Sequence[str]"
Type parameter "_T_co@Sequence" is covariant, but "int" is not a subtype of "str"
"int" is not assignable to "str"
"list[int]" is not assignable to "Sequence[bytes]"
Type parameter "_T_co@Sequence" is covariant, but "int" is not a subtype of "bytes"
"int" is not assignable to "bytes"
"list[int]" is not assignable to "Sequence[bytearray]"
... (reportArgumentType)
|
|
pyright type-check:
compare/compare1.py#L177
Argument of type "NDArray[Any] | None" cannot be assigned to parameter "obj" of type "Sized" in function "len"
Type "NDArray[Any] | None" is not assignable to type "Sized"
"None" is incompatible with protocol "Sized"
"__len__" is not present (reportArgumentType)
|
|
pyright type-check:
compare/compare1.py#L176
Argument of type "NDArray[Any] | None" cannot be assigned to parameter "obj" of type "Sized" in function "len"
Type "NDArray[Any] | None" is not assignable to type "Sized"
"None" is incompatible with protocol "Sized"
"__len__" is not present (reportArgumentType)
|
|
pyright type-check:
get_processor_result.py#L4
Import "imageio" could not be resolved (reportMissingImports)
|
|
pyright type-check:
get_processor_result.py#L4
Import "imageio" is not accessed (reportUnusedImport)
|