Shroominic commited on
Commit
88e5f68
·
1 Parent(s): 053c1a1

↩️ fix return

Browse files
Files changed (1) hide show
  1. codeinterpreterapi/schema/file.py +1 -1
codeinterpreterapi/schema/file.py CHANGED
@@ -14,7 +14,7 @@ class File(BaseModel):
14
 
15
  @classmethod
16
  async def afrom_path(cls, path: str):
17
- await asyncio.to_thread(cls.from_path, path)
18
 
19
  @classmethod
20
  def from_url(cls, url: str):
 
14
 
15
  @classmethod
16
  async def afrom_path(cls, path: str):
17
+ return await asyncio.to_thread(cls.from_path, path)
18
 
19
  @classmethod
20
  def from_url(cls, url: str):