attempt 2 to appease the linter

This commit is contained in:
Christian Zhou-Zheng 2024-06-07 21:20:46 -04:00
parent 2e70fa1055
commit 891b19cb81

View file

@ -66,7 +66,7 @@ class GGUFWriterSplit(GGUFWriter):
def __init__(self, path: os.PathLike[str] | str, arch: str, split_arguments: SplitArguments, def __init__(self, path: os.PathLike[str] | str, arch: str, split_arguments: SplitArguments,
use_temp_file: bool = True, endianess: GGUFEndian = GGUFEndian.LITTLE use_temp_file: bool = True, endianess: GGUFEndian = GGUFEndian.LITTLE
) -> None: ) -> None:
# we intentionally don't call superclass constructor # we intentionally don't call superclass constructor
self.arch = arch self.arch = arch
self.path = Path(path) self.path = Path(path)
@ -257,4 +257,3 @@ class GGUFWriterSplit(GGUFWriter):
return f"{fnum:3.1f}{unit}" return f"{fnum:3.1f}{unit}"
fnum /= 1000.0 fnum /= 1000.0
return f"{fnum:.1f}T - over 1TB, --split recommended" return f"{fnum:.1f}T - over 1TB, --split recommended"