瀏覽代碼

convert : fix another python 3.8 issue (#2949)

Cebtenzzre 2 年之前
父節點
當前提交
bce1fef328
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      convert.py

+ 1 - 1
convert.py

@@ -530,7 +530,7 @@ class LazyTensor:
             raise ValueError(f'Cannot validate conversion from {self.data_type} to {data_type}.')
             raise ValueError(f'Cannot validate conversion from {self.data_type} to {data_type}.')
 
 
 
 
-LazyModel = dict[str, LazyTensor]
+LazyModel: TypeAlias = 'dict[str, LazyTensor]'
 
 
 
 
 @dataclass
 @dataclass