Update mypy dev requirement to 0.812+

Noticable improvement: no longer throws errors when using
aiofiles 0.6+ functions.
This commit is contained in:
miruka
2021-03-12 17:24:37 -04:00
parent 688fdec9d7
commit 2b91fc048c
2 changed files with 3 additions and 3 deletions

View File

@@ -166,7 +166,7 @@ async def guess_mime(file: File) -> str:
if isinstance(file, io.IOBase):
file.seek(0, 0)
elif isinstance(file, AsyncBufferedIOBase):
await file.seek(0, 0) # type: ignore
await file.seek(0, 0)
try:
first_chunk: bytes
@@ -186,7 +186,7 @@ async def guess_mime(file: File) -> str:
if isinstance(file, io.IOBase):
file.seek(0, 0)
elif isinstance(file, AsyncBufferedIOBase):
await file.seek(0, 0) # type: ignore
await file.seek(0, 0)
def plain2html(text: str) -> str: