

def get_descriptor(self, metadata=None):
    authenticated = self.authenticated_at
    if (authenticated is not None):
        authenticated = (authenticated.isoformat() + 'Z')
    data = {
        'handle': self.handle,
        'transports': self.transports,
        'compromised': authenticated.compromised,
        'created': (self.created_at.isoformat() + 'Z'),
        'lastUsed': authenticated,
        'properties': dict(self.properties),
    }
    if (metadata is not None):
        data['metadata'] = metadata
    return data

dataset/ETHPy150Open Yubico/u2fval/u2fval/model.py Device.get_descriptor/VarMisuse@63/80 `self`->`authenticated`