py : type-check all Python scripts with Pyright #18
python-type-check.yml
on: pull_request
pyright type-check
59s
Annotations
7 errors
pyright type-check:
convert_hf_to_gguf.py#L3220
Argument of type "bytes | Unknown" cannot be assigned to parameter "object" of type "bytearray" in function "append"
Type "bytes | Unknown" is incompatible with type "bytearray"
"bytes" is incompatible with "bytearray" (reportArgumentType)
|
pyright type-check:
convert_hf_to_gguf.py#L3235
Argument of type "bytes | Unknown" cannot be assigned to parameter "object" of type "bytearray" in function "append"
Type "bytes | Unknown" is incompatible with type "bytearray"
"bytes" is incompatible with "bytearray" (reportArgumentType)
|
pyright type-check:
convert_hf_to_gguf.py#L3334
"split" is not a known attribute of "None" (reportOptionalMemberAccess)
|
pyright type-check:
gguf-py/scripts/gguf_hash.py#L66
Argument of type "NDArray[Any]" cannot be assigned to parameter "data" of type "ReadableBuffer" in function "update"
"ndarray[Any, dtype[Any]]" is incompatible with protocol "Buffer"
"__buffer__" is not present (reportArgumentType)
|
pyright type-check:
gguf-py/scripts/gguf_hash.py#L67
Argument of type "NDArray[Any]" cannot be assigned to parameter "data" of type "ReadableBuffer" in function "update"
"ndarray[Any, dtype[Any]]" is incompatible with protocol "Buffer"
"__buffer__" is not present (reportArgumentType)
|
pyright type-check:
gguf-py/scripts/gguf_hash.py#L68
Argument of type "NDArray[Any]" cannot be assigned to parameter "data" of type "ReadableBuffer" in function "update"
"ndarray[Any, dtype[Any]]" is incompatible with protocol "Buffer"
"__buffer__" is not present (reportArgumentType)
|
pyright type-check
6 errors
|