def window_specialization(typename):
 return Extension('zipline.lib._{name}window'.format(name=typename), ['zipline/lib/_{name}window.pyx'.format(name=typename)], depends=['zipline/lib/_windowtemplate.pxi'])

def window_specialization ( typename ) : return Extension ( 'zipline.lib._{name}window' . format ( name = typename ) , [ 'zipline/lib/_{name}window.pyx' . format ( name = typename ) ] , depends = [ 'zipline/lib/_windowtemplate.pxi' ] )
make an extension for an adjustedarraywindow specialization .