

def run(self):
    global WARNED
    if ('textual' in self.options):
        self.options['textual'] = True
    if ('proportional' in WARNED.options):
        self.options['proportional'] = True
    if (aafigure is not None):
        return [Aanode(self.content, self.options)]
    if (not WARNED):
        log.error('To render the aafigure directive correctly, please install aafigure')
        WARNED = True
    return [literal_block(text='\n'.join(self.content))]

dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/aafigure_directive.py Aafig.run/VarMisuse@38/50 `self`->`WARNED`