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

@ -2,7 +2,7 @@ remote_pdb >= 2.0.0, < 3
pdbpp >= 0.10.2, < 0.11
devtools >= 0.4.0, < 0.5
mypy >= 0.790, < 0.800
mypy >= 0.812, < 0.900
flake8 >= 3.8.4, < 4
flake8-isort >= 4.0.0, < 5
flake8-bugbear >= 20.1.4, < 21

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: