class Twitter:

    # NOTE: see for the opportunity to use a metaclass to force derived classes
    #       explicitly declare the publish method
    def publish(self, post):
        # TODO: replace 'Twitter' with self.__class__.__name__
        print(f'Publish on Twitter via its API: {post.content}')