Fix type error
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
This commit is contained in:
parent
21959374f7
commit
d26abdfdd7
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ class YTDLCog(commands.Cog):
|
||||||
return new_file
|
return new_file
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def upload_to_0x0(name: str, data: typing.BinaryIO[bytes], mime_type: str | None = None) -> str:
|
async def upload_to_0x0(name: str, data: typing.IO[bytes], mime_type: str | None = None) -> str:
|
||||||
if not mime_type:
|
if not mime_type:
|
||||||
import magic
|
import magic
|
||||||
mime_type = await asyncio.to_thread(magic.from_buffer, data.read(4096), mime=True)
|
mime_type = await asyncio.to_thread(magic.from_buffer, data.read(4096), mime=True)
|
||||||
|
|
Loading…
Reference in a new issue