Skip to content

Commit 8f4765b

Browse files
committed
improve file class
1 parent 7050c4e commit 8f4765b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inferencesh/models/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import hashlib
88
from pathlib import Path
99
from tqdm import tqdm
10-
from pydantic_core import core_schema
11-
from pydantic_core.core_schema import GetJsonSchemaHandler, JsonSchemaValue
1210

11+
from pydantic import GetCoreSchemaHandler, GetJsonSchemaHandler, JsonSchemaValue
12+
from pydantic_core import CoreSchema, core_schema
1313

1414
class File(BaseModel):
1515
"""A class representing a file in the inference.sh ecosystem."""

0 commit comments

Comments
 (0)