convert.py: don't stringify Metadata load method output
This commit is contained in:
parent
74fe2ea7a8
commit
caf5fc35b8
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ class Metadata:
|
|||
source_hf_repo: Optional[str] = None
|
||||
|
||||
@staticmethod
|
||||
def load(metadata_path: Path) -> "Metadata":
|
||||
def load(metadata_path: Path) -> Metadata:
|
||||
if metadata_path is None or not metadata_path.exists():
|
||||
return Metadata()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue