]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert : fix/suppress pyright errors (#20442)
authorDaniel Bevenius <redacted>
Fri, 13 Mar 2026 05:00:52 +0000 (06:00 +0100)
committerGitHub <redacted>
Fri, 13 Mar 2026 05:00:52 +0000 (06:00 +0100)
commit983df142a99b764f5cbe9acb6b9ec862f861d353
tree75383758cc0f7abdf678b6ba87e5f1304299d8f3
parent57819b8d4b39d893408e51520dff3d47d1ebb757
convert : fix/suppress pyright errors (#20442)

* convert : fix/suppress pyright errors

This commit fixes the pyright errors that are generated by pyright for
convert_hf_to_gguf.py.

The motivation for this is that running this locally generates errors
that CI does not, and it can be difficult to spot new errors. One use
case is when working on new models which cannot be run in CI due to
privacy. Having the ability to run pyright locally is would be helpful
in this cases.

In the linked issue there is the mention of switching to `ty` which I
don't know anything about but in the meantime I would appreciate if we
could suppress these errors for now, and later perhaps revert this
commit.

With this change there are no errors but there are 4 informations
messages if the `mistral_common` package is installed. The
`--level error` flag can be used to suppress them.

Resolves: https://github.com/ggml-org/llama.cpp/issues/20417
convert_hf_to_gguf.py