make mypy error more specific

This commit is contained in:
Sean Breckenridge 2023-02-15 21:36:58 -08:00
parent 5b8b1d3bbf
commit 02ea0b26dd

View file

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