#NEWLINE# @ classmethod #NEWLINE# def shadow( cls , module_name , deferred , **attributes ) : #NEWLINE# #INDENT# 'Replace *module_name* in ``sys.modules`` with a deferred clone.' #NEWLINE# module = sys . modules [ module_name ] #NEWLINE# sys . modules [ module_name ] = cls ( module_name , deferred , ** attributes )