We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7cef1 commit 150f157Copy full SHA for 150f157
gguf-py/gguf/quants.py
@@ -1,3 +1,5 @@
1
+# pyright: reportInvalidTypeForm=false
2
+
3
from __future__ import annotations
4
from abc import ABC, abstractmethod
5
from typing import Any, Callable, Sequence
@@ -78,7 +80,7 @@ class __Quant(ABC):
78
80
block_size: int
79
81
type_size: int
82
- grid: np.ndarray | None = None # np.float32
83
+ grid: np.ndarray[Any, np.dtype[np.float32]] | None = None
84
grid_shape: tuple[int, int] = (0, 0)
85
grid_map: tuple[int | float, ...] = ()
86
grid_hex: bytes | None = None
0 commit comments