def _accept_file(self, f):
    _, ext = os.path.splitext(f)
    return ext in self.extensions
Returns true if the given file's extension matches this Sources type.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/examples/sources.py/Sources._accept_file