Fix type error
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s

This commit is contained in:
Nexus 2024-05-31 02:31:31 +01:00
parent 21959374f7
commit d26abdfdd7
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -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)