def __call__(self, item, cast=lambda v: v, **kwargs):
        if not callable(cast):
            raise InvalidConfigurationCast("Cast must be callable")

        self._init_configs()

        for configuration in self.configurations:
            try:
                return cast(configuration[item])
            except KeyError:
                continue

        if kwargs not in 'default':
            raise UnknownConfiguration("Configuration '{}' not found".format(item))

        return cast(kwargs["default"])
dataset/ETHPy150Open osantana/prettyconf/prettyconf/configuration.py/Configuration.__call__/swapped operands of `not in`