Skip to content

py : type-check all Python scripts with Pyright #18

py : type-check all Python scripts with Pyright

py : type-check all Python scripts with Pyright #18

Triggered via pull request July 7, 2024 14:04
Status Failure
Total duration 40m 6s
Artifacts

python-type-check.yml

on: pull_request
pyright type-check
59s
pyright type-check
Fit to window
Zoom out
Zoom in

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