Skip to content

Commit

Permalink
py : fix flake8 and isort nitpicks (ggerganov#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Apr 14, 2023
1 parent 1623a6e commit 43ffdef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from pathlib import Path
from typing import (IO, TYPE_CHECKING, Any, Callable, Dict, Iterable, List,
Literal, Optional, Sequence, Tuple, TypeVar, Union)

import numpy as np
from sentencepiece import SentencePieceProcessor # type: ignore
from typing import (IO, Any, Callable, Iterable, Literal, Optional, Sequence,
TypeVar, Union, List, Dict, Tuple, TYPE_CHECKING)

if TYPE_CHECKING:
from typing_extensions import TypeAlias

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

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

Expand Down

0 comments on commit 43ffdef

Please sign in to comment.