Upgrade mypy to 0.730, address raised issues (#26959)

https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
This commit is contained in:
Ville Skyttä authored and GitHub committed 2019-09-27 22:57:59 +03:00
1 parent 77654da341
commit fde128d66c
11 files changed
+25 -19

No files matched your search

+5 -3
View File
@@ -42,8 +42,10 @@ class CachingStaticResource(StaticResource):
if filepath.is_dir():
return await super()._handle(request)
if filepath.is_file():
# type ignore: https://github.com/aio-libs/aiohttp/pull/3976
return FileResponse( # type: ignore
filepath, chunk_size=self._chunk_size, headers=CACHE_HEADERS
return FileResponse(
filepath,
chunk_size=self._chunk_size,
# type ignore: https://github.com/aio-libs/aiohttp/pull/3976
headers=CACHE_HEADERS, # type: ignore
)
raise HTTPNotFound