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

+2 -2
View File
@@ -6,7 +6,7 @@ detect_location_info and elevation are mocked by default during tests.
import asyncio
import collections
import math
from typing import Any, Optional, Tuple, Dict
from typing import Any, Optional, Tuple, Dict, cast
import aiohttp
@@ -159,7 +159,7 @@ def vincenty(
if miles:
s *= MILES_PER_KILOMETER # kilometers to miles
return round(s, 6)
return round(cast(float, s), 6)
async def _get_ipapi(session: aiohttp.ClientSession) -> Optional[Dict[str, Any]]: