Update gguf-py/gguf/gguf_reader.py type hint
Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
parent
2af29ffeaa
commit
855486c912
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class GGUFReader:
|
|||
alignment: int = GGUF_DEFAULT_ALIGNMENT
|
||||
|
||||
# Note: Internal helper, API may change.
|
||||
gguf_scalar_to_np: Dict[GGUFValueType, npt.DTypeLike] = {
|
||||
gguf_scalar_to_np: dict[GGUFValueType, type[np.generic]] = {
|
||||
GGUFValueType.UINT8: np.uint8,
|
||||
GGUFValueType.INT8: np.int8,
|
||||
GGUFValueType.UINT16: np.uint16,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue