Преглед изворни кода

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}.')
 
 
-LazyModel = dict[str, LazyTensor]
+LazyModel: TypeAlias = 'dict[str, LazyTensor]'
 
 
 @dataclass