from typing import Protocol class SocialConnector(Protocol): platform: str def publish(self, post, target) -> str: """Publish and return remote post id.""" def refresh_token(self, account) -> None: ...