from typing import Protocol, runtime_checkable @runtime_checkable class ShortUrl(Protocol): def short_url(self): ...