Upgrade mypy to 0.740 (#27913)
* Upgrade mypy to 0.740 http://mypy-lang.blogspot.com/2019/10/mypy-0740-released.html * Type hint additions * Type fixes * Remove no longer needed type ignores and casts * Disable untyped definition checks in bunch of files
This commit is contained in:
1 parent
758fcc9b00
commit
381d423fec
17 files changed
+25
-21
No files matched your search
@@ -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, cast
|
||||
from typing import Any, Optional, Tuple, Dict
|
||||
|
||||
import aiohttp
|
||||
|
||||
@@ -159,7 +159,7 @@ def vincenty(
|
||||
if miles:
|
||||
s *= MILES_PER_KILOMETER # kilometers to miles
|
||||
|
||||
return round(cast(float, s), 6)
|
||||
return round(s, 6)
|
||||
|
||||
|
||||
async def _get_ipapi(session: aiohttp.ClientSession) -> Optional[Dict[str, Any]]:
|
||||
|
||||
Reference in new issue
Block a user