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:
Ville Skyttä
2019-05-02 21:18:20 +03:00
committed by GitHub
parent b79d71065c
commit f434e24252
6 changed files with 10 additions and 9 deletions

View File

@@ -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)