File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2323else :
2424 from typing_extensions import TypeAlias
2525
26- from fileformats .core .typing import Self
2726from fileformats .core .converter_helpers import SubtypeVar
27+ from fileformats .core .typing import Self
2828from fileformats .core .utils import _excluded_subpackages
2929
3030from .classifier import Classifier
@@ -119,8 +119,6 @@ def __init__(
119119 metadata : ty .Optional [ty .Dict [str , ty .Any ]] = None ,
120120 ** load_kwargs : ty .Any ,
121121 ):
122- if not fspaths :
123- raise ValueError ("No file-system paths provided to FileSet" )
124122 self ._explicit_metadata = metadata
125123 self ._load_kwargs = load_kwargs
126124 self ._validate_class ()
@@ -137,7 +135,7 @@ def __init__(
137135
138136 def _validate_fspaths (self ) -> None :
139137 if not self .fspaths :
140- raise ValueError (f"No file-system paths provided to { self } " )
138+ raise ValueError (f"No file-system paths provided to { type ( self ) } " )
141139 missing = [p for p in self .fspaths if not p or not p .exists ()]
142140 if missing :
143141 missing_str = "\n " .join (str (p ) for p in missing )
You can’t perform that action at this time.
0 commit comments