<s> from sphinx import addnodes <EOL> from sphinx . domains . python import PyModulelevel , PyClassmember <EOL> class PyCoroutineMixin ( object ) : <EOL> def handle_signature ( self , sig , signode ) : <EOL> ret = super ( PyCoroutineMixin , self ) . handle_signature ( sig , signode ) <EOL> signode . insert ( <NUM_LIT:0> , addnodes . desc_annotation ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> return ret <EOL> class PyAsyncFunction ( PyCoroutineMixin , PyModulelevel ) : <EOL> def run ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> return PyModulelevel . run ( self ) <EOL> class PyAsyncMethod ( PyCoroutineMixin , PyClassmember ) : <EOL> def run ( self ) : <EOL> self . name = '<STR_LIT>' <EOL> return PyClassmember . run ( self ) <EOL> def setup ( app ) : <EOL> app . add_directive_to_domain ( '<STR_LIT>' , '<STR_LIT>' , PyAsyncFunction ) <EOL> app . add_directive_to_domain ( '<STR_LIT>' , '<STR_LIT>' , PyAsyncMethod ) <EOL> return { '<STR_LIT:version>' : '<STR_LIT:1.0>' , '<STR_LIT>' : True } </s>
