Squish last type warning in gguf.py - yay!

This commit is contained in:
KerfuffleV2 2023-08-29 14:01:05 -06:00
parent ce005285aa
commit d77b74b41e

View file

@ -9,6 +9,7 @@ import os
from pathlib import Path from pathlib import Path
from enum import IntEnum, auto from enum import IntEnum, auto
from io import BufferedWriter
from typing import Any, BinaryIO, Callable, IO, Dict, List, Optional, Sequence, Tuple, Union from typing import Any, BinaryIO, Callable, IO, Dict, List, Optional, Sequence, Tuple, Union
# #
@ -422,7 +423,7 @@ class GGUFValueType(IntEnum):
class GGUFWriter: class GGUFWriter:
fout: BinaryIO fout: BufferedWriter
arch: str arch: str
offset_tensor = 0 offset_tensor = 0
data_alignment = GGUF_DEFAULT_ALIGNMENT data_alignment = GGUF_DEFAULT_ALIGNMENT