"""
    Any of the values not in collection conditions
"""

from marshmallow import post_load

from .base import CollectionCondition, CollectionConditionSchema


class AnyNotIn(CollectionCondition):
    """
        Condition for any values of `what` not in `values`
    """

    def _is_satisfied(self, what) -> bool:
        return not bool(set(what).intersection(self.values))


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):  # pylint: disable=missing-docstring,no-self-use
        return AnyNotIn(**data)

ead9c8514bb10d89f2417da44c363d996ed52a2a
<mask token>


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):
        return AnyNotIn(**data)

<mask token>


class AnyNotIn(CollectionCondition):
    <mask token>

    def _is_satisfied(self, what) ->bool:
        return not bool(set(what).intersection(self.values))


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):
        return AnyNotIn(**data)

<mask token>


class AnyNotIn(CollectionCondition):
    """
        Condition for any values of `what` not in `values`
    """

    def _is_satisfied(self, what) ->bool:
        return not bool(set(what).intersection(self.values))


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):
        return AnyNotIn(**data)

<mask token>
from marshmallow import post_load
from .base import CollectionCondition, CollectionConditionSchema


class AnyNotIn(CollectionCondition):
    """
        Condition for any values of `what` not in `values`
    """

    def _is_satisfied(self, what) ->bool:
        return not bool(set(what).intersection(self.values))


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):
        return AnyNotIn(**data)

"""
    Any of the values not in collection conditions
"""

from marshmallow import post_load

from .base import CollectionCondition, CollectionConditionSchema


class AnyNotIn(CollectionCondition):
    """
        Condition for any values of `what` not in `values`
    """

    def _is_satisfied(self, what) -> bool:
        return not bool(set(what).intersection(self.values))


class AnyNotInSchema(CollectionConditionSchema):
    """
        JSON schema for any not in collection condition
    """

    @post_load
    def post_load(self, data, **_):  # pylint: disable=missing-docstring,no-self-use
        return AnyNotIn(**data)
