from Filter import Filter
from typing import Type
from Specification import Specification


class NewFilter(Filter):

    def filter(self, items, spec: Type[Specification]):
        for item in items:
            if spec.is_satisfied(item):
                yield item

d056ca4051d34fcfc4cfe1da51d49ad984522ecb
<mask token>

<mask token>


class NewFilter(Filter):
    <mask token>

<mask token>


class NewFilter(Filter):

    def filter(self, items, spec: Type[Specification]):
        for item in items:
            if spec.is_satisfied(item):
                yield item

from Filter import Filter
from typing import Type
from Specification import Specification


class NewFilter(Filter):

    def filter(self, items, spec: Type[Specification]):
        for item in items:
            if spec.is_satisfied(item):
                yield item
