Seems to have dialyzerdiscovered that it TestListmay contain something other than {_, _, SomeBoolFlag}tuples.
And also you can simplify this code a bit:
List = lists:filter(fun({_, _, Flag}) -> not Flag end, TestList)
or
List = [Item || Item={_, _, false} <- TestList]
hdima source
share