class SyncLock(object):
    ...


class SyncSocket(object):
    def __init__(self, send_lock: SyncLock):
        ...

    def __enter__(self) -> "SyncSocket":
        ...

    def send_all(self, data):
        ...
