mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
dvc.objects: fix typing imports
This commit is contained in:
committed by
skshetry
parent
e8a439df8d
commit
54917e3255
@@ -1,12 +1,12 @@
|
||||
import logging
|
||||
from itertools import chain
|
||||
from typing import Optional
|
||||
|
||||
from dvc import prompt
|
||||
from dvc.exceptions import CacheLinkError, CheckoutError, ConfirmRemoveError
|
||||
from dvc.ignore import DvcIgnoreFilter
|
||||
from dvc.objects.fs._callback import FsspecCallback
|
||||
from dvc.objects.fs.generic import test_links, transfer
|
||||
from dvc.types import Optional
|
||||
|
||||
from .diff import ROOT
|
||||
from .diff import diff as odiff
|
||||
|
||||
@@ -6,7 +6,7 @@ from typing import TYPE_CHECKING, Iterable, Set
|
||||
from dvc.objects.errors import ObjectDBError
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from dvc.types import StrPath
|
||||
from dvc.objects.fs.base import AnyFSPath
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -15,7 +15,7 @@ class ObjectDBIndexBase(ABC):
|
||||
@abstractmethod
|
||||
def __init__(
|
||||
self,
|
||||
tmp_dir: "StrPath",
|
||||
tmp_dir: "AnyFSPath",
|
||||
name: str,
|
||||
):
|
||||
pass
|
||||
@@ -53,7 +53,7 @@ class ObjectDBIndexNoop(ObjectDBIndexBase):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tmp_dir: "StrPath",
|
||||
tmp_dir: "AnyFSPath",
|
||||
name: str,
|
||||
): # pylint: disable=super-init-not-called
|
||||
pass
|
||||
@@ -85,7 +85,7 @@ class ObjectDBIndex(ObjectDBIndexBase):
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
tmp_dir: "StrPath",
|
||||
tmp_dir: "AnyFSPath",
|
||||
name: str,
|
||||
): # pylint: disable=super-init-not-called
|
||||
from dvc.objects.cache import Cache, Index
|
||||
|
||||
Reference in New Issue
Block a user