mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Upgrade mypy (#23586)
* Upgrade mypy to 0.701 * Enable strict equality checks * Strict equality error fixes * StateMachine.is_state docstring fix
This commit is contained in:
@@ -117,7 +117,7 @@ def vincenty(point1: Tuple[float, float], point2: Tuple[float, float],
|
||||
cosLambda = math.cos(Lambda)
|
||||
sinSigma = math.sqrt((cosU2 * sinLambda) ** 2 +
|
||||
(cosU1 * sinU2 - sinU1 * cosU2 * cosLambda) ** 2)
|
||||
if sinSigma == 0:
|
||||
if sinSigma == 0.0:
|
||||
return 0.0 # coincident points
|
||||
cosSigma = sinU1 * sinU2 + cosU1 * cosU2 * cosLambda
|
||||
sigma = math.atan2(sinSigma, cosSigma)
|
||||
|
||||
Reference in New Issue
Block a user