(self, string: str)
return role + ':' + str(new_party_id)
{role}:{party_id}
{role}:{party_id}
{ role } : { party_id }
def colon_format(self, string: str):
        """{role}:{party_id}"""
        role, party_id = string.split(':')
        mapping = self.get_mapping(role)
        new_party_id = mapping[int(party_id)]
        return role + ':' + str(new_party_id)
def colon_format ( self , string : str ) : role , party_id = string . split ( ':' ) mapping = self . get_mapping ( role ) new_party_id = mapping [ int ( party_id ) ] return role + ':' + str ( new_party_id )