From: Cebtenzzre Date: Fri, 1 Sep 2023 02:13:51 +0000 (-0400) Subject: convert : fix another python 3.8 issue (#2949) X-Git-Tag: gguf-v0.4.0~171 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=bce1fef328941499dc0acb76cc7fd7ac90449c2f;p=pkg%2Fggml%2Fsources%2Fllama.cpp convert : fix another python 3.8 issue (#2949) --- diff --git a/convert.py b/convert.py index 5cc3f6e6..6c89b5ec 100755 --- a/convert.py +++ b/convert.py @@ -530,7 +530,7 @@ class LazyTensor: raise ValueError(f'Cannot validate conversion from {self.data_type} to {data_type}.') -LazyModel = dict[str, LazyTensor] +LazyModel: TypeAlias = 'dict[str, LazyTensor]' @dataclass