import abc

import tweepy


class TweetSelectorInterface(metaclass=abc.ABCMeta):
    @classmethod
    def __subclasshook__(cls, subclass):
        return (hasattr(subclass, 'rate_tweet') and
                callable(subclass.rate_tweet) or
                NotImplemented)

    @abc.abstractmethod
    def rate_tweet(self, status: tweepy.Status) -> float:
        raise NotImplementedError

import abc

import tweepy


class TweetSelectorInterface(metaclass=abc.ABCMeta):
    @classmethod
    def __subclasshook__(cls, subclass):
        return (hasattr(subclass, 'rate_tweet') and
                callable(subclass.rate_tweet) or
                NotImplemented)

    @abc.abstractmethod
    def rate_tweet(self, status: tweepy.Status) -> float:
        raise NotImplementedError
