From a60e12f9719ef9e3c8f151f79547892a1acf58de Mon Sep 17 00:00:00 2001 From: Shyam D Date: Tue, 17 Nov 2020 13:10:05 -0800 Subject: [PATCH] fix mypy linting --- src/maggma/stores/mongolike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maggma/stores/mongolike.py b/src/maggma/stores/mongolike.py index 60d96533a..d4b6e4033 100644 --- a/src/maggma/stores/mongolike.py +++ b/src/maggma/stores/mongolike.py @@ -121,7 +121,7 @@ def distinct( d["_id"] for d in self._collection.aggregate([{"$group": {"_id": f"${field}"}}]) ] - if all(isinstance(d, list) for d in filter(None, distinct_vals)): + if all(isinstance(d, list) for d in filter(None, distinct_vals)): # type: ignore distinct_vals = list(chain.from_iterable(filter(None, distinct_vals))) return distinct_vals if distinct_vals is not None else []