diff --git a/earthkit/data/core/index.py b/earthkit/data/core/index.py index 500417d4..d730707f 100644 --- a/earthkit/data/core/index.py +++ b/earthkit/data/core/index.py @@ -46,8 +46,7 @@ def __init__(self, lst): def __call__(self, x): if self.first and x is not None: self.lst = [ - lambda y: type(x) if not type(x) == type(y) else y - for y in self.lst + type(x) if not type(x) == type(y) else y for y in self.lst ] self.first = False return x in self.lst