Skip to content

Commit

Permalink
fix mypy linting
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Nov 17, 2020
1 parent 989d08f commit a60e12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maggma/stores/mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit a60e12f

Please sign in to comment.