def get_short_id(self, id: str) -> str:
    "Return a shorter 'id' associated with ``id``."
    try:
        sid = self.short_ids[id]
    except KeyError:
        sid = hex(len(self.short_ids))[2:]
        self.short_ids[id] = sid
    return sid
Return a shorter 'id' associated with ``id``.
def get_short_id(self, id: str) -> str:
    
    try:
        sid = self.short_ids[id]
    except KeyError:
        sid = hex(len(self.short_ids))[2:]
        self.short_ids[id] = sid
    return sid