"""SmsSender port — 短信发送能力契约。""" from typing import Protocol, runtime_checkable @runtime_checkable class SmsSender(Protocol): def send_verification_code(self, phone: str, code: str) -> bool: """Send a verification code via SMS. Return True on success.""" ...