From 02ea0b26dd8800bc121551d8a5821e08612ae486 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Wed, 15 Feb 2023 21:36:58 -0800 Subject: [PATCH] make mypy error more specific --- my/location/fallback/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/location/fallback/common.py b/my/location/fallback/common.py index f642a1b..d398d4d 100644 --- a/my/location/fallback/common.py +++ b/my/location/fallback/common.py @@ -107,7 +107,7 @@ def estimate_from( # otherwise, we should prefer the order that the estimators are passed in as if all(loc.accuracy is not None for loc in found): # return the location with the lowest accuracy - return min(has_accuracy, key=lambda loc: loc.accuracy) # type: ignore[union-attr] + return min(found, key=lambda loc: loc.accuracy) # type: ignore[return-value, arg-type] else: # return the first location return found[0]