File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ def _sha256(path: Path) -> str:
4545
4646
4747class ModelRegistry (ABC ):
48- @property
49- @abstractmethod
50- def path (self ) -> Path :
51- """The path to the registry's data."""
52- ...
53-
5448 @property
5549 @abstractmethod
5650 def files (self ) -> dict :
@@ -118,11 +112,11 @@ def __init__(
118112 """
119113 # check if path is iterable of str\pathlike
120114 if isinstance (path , Iterable ) and not isinstance (path , str ):
121- path = [Path (p ).expanduser ().resolve ().absolute () for p in path ]
122- missing = [p for p in path if not p .is_dir ()]
115+ path = [Path (p ).expanduser ().resolve ().absolute () for p in path ] # type: ignore
116+ missing = [p for p in path if not p .is_dir ()] # type: ignore
123117 if any (missing ):
124118 raise NotADirectoryError (
125- f"Directory paths not found: { ', ' .join (missing )} "
119+ f"Directory paths not found: { ', ' .join (missing )} " # type: ignore
126120 )
127121 self ._path = path
128122 else :
@@ -197,8 +191,8 @@ def copy_to(
197191 return workspace
198192
199193 @property
200- def path (self ) -> Path :
201- return self ._path
194+ def path (self ) -> list [ Path ] :
195+ return self ._path # type: ignore
202196
203197 @property
204198 def files (self ) -> dict :
You can’t perform that action at this time.
0 commit comments