def successful_only(self) -> typing.Iterator[AVBuild]: for x in self: if x.status == 'success': yield x