Skip to content

Commit 43ffdef

Browse files
authored
py : fix flake8 and isort nitpicks (#960)
1 parent 1623a6e commit 43ffdef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

convert.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
from abc import ABCMeta, abstractmethod
1919
from dataclasses import dataclass
2020
from pathlib import Path
21+
from typing import (IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List,
22+
Literal, Optional, Sequence, Tuple, TypeVar, Union)
23+
2124
import numpy as np
2225
from sentencepiece import SentencePieceProcessor # type: ignore
23-
from typing import (IO, Any, Callable, Iterable, Literal, Optional, Sequence,
24-
TypeVar, Union, List, Dict, Tuple, TYPE_CHECKING)
26+
2527
if TYPE_CHECKING:
2628
from typing_extensions import TypeAlias
2729

@@ -684,7 +686,7 @@ def load(offset: int, elm_count: int) -> NDArray:
684686
description = f'storage data_type={data_type} path-in-zip={filename} path={self.zip_file.filename}'
685687
return LazyStorage(load=load, kind=pid[1], description=description)
686688

687-
def lazy_rebuild_tensor_v2(storage: Any, storage_offset: Any, size: Any, stride: Any, # pyright: ignore[reportSelfClsParameterName]
689+
def lazy_rebuild_tensor_v2(storage: Any, storage_offset: Any, size: Any, stride: Any, # pyright: ignore[reportSelfClsParameterName]
688690
requires_grad: Any, backward_hooks: Any, metadata: Any = None) -> LazyTensor:
689691
assert isinstance(storage, LazyStorage)
690692

0 commit comments

Comments
 (0)