Update mypy dev requirement to 0.812+
Noticable improvement: no longer throws errors when using aiofiles 0.6+ functions.
This commit is contained in:
parent
688fdec9d7
commit
2b91fc048c
|
@ -2,7 +2,7 @@ remote_pdb >= 2.0.0, < 3
|
||||||
pdbpp >= 0.10.2, < 0.11
|
pdbpp >= 0.10.2, < 0.11
|
||||||
devtools >= 0.4.0, < 0.5
|
devtools >= 0.4.0, < 0.5
|
||||||
|
|
||||||
mypy >= 0.790, < 0.800
|
mypy >= 0.812, < 0.900
|
||||||
flake8 >= 3.8.4, < 4
|
flake8 >= 3.8.4, < 4
|
||||||
flake8-isort >= 4.0.0, < 5
|
flake8-isort >= 4.0.0, < 5
|
||||||
flake8-bugbear >= 20.1.4, < 21
|
flake8-bugbear >= 20.1.4, < 21
|
||||||
|
|
|
@ -166,7 +166,7 @@ async def guess_mime(file: File) -> str:
|
||||||
if isinstance(file, io.IOBase):
|
if isinstance(file, io.IOBase):
|
||||||
file.seek(0, 0)
|
file.seek(0, 0)
|
||||||
elif isinstance(file, AsyncBufferedIOBase):
|
elif isinstance(file, AsyncBufferedIOBase):
|
||||||
await file.seek(0, 0) # type: ignore
|
await file.seek(0, 0)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
first_chunk: bytes
|
first_chunk: bytes
|
||||||
|
@ -186,7 +186,7 @@ async def guess_mime(file: File) -> str:
|
||||||
if isinstance(file, io.IOBase):
|
if isinstance(file, io.IOBase):
|
||||||
file.seek(0, 0)
|
file.seek(0, 0)
|
||||||
elif isinstance(file, AsyncBufferedIOBase):
|
elif isinstance(file, AsyncBufferedIOBase):
|
||||||
await file.seek(0, 0) # type: ignore
|
await file.seek(0, 0)
|
||||||
|
|
||||||
|
|
||||||
def plain2html(text: str) -> str:
|
def plain2html(text: str) -> str:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user