def execute(self, compiled=None, path=None, use_eval=False, allow_show=True):
        """Execute compiled code."""
        self.check_runner()
        if compiled is not None:
            if allow_show and self.show:
                print(compiled)
            if path is not None:  # path means header is included, and thus encoding must be removed
                compiled = rem_encoding(compiled)
            self.runner.run(compiled, use_eval=use_eval, path=path, all_errors_exit=(path is not None))
            self.run_mypy(code=self.runner.was_run_code())
def execute ( self , compiled = None , path = None , use_eval = False , allow_show = True ) : self . check_runner ( ) if compiled is not None : if allow_show and self . show : print ( compiled ) if path is not None : compiled = rem_encoding ( compiled ) self . runner . run ( compiled , use_eval = use_eval , path = path , all_errors_exit = ( path is not None ) ) self . run_mypy ( code = self . runner . was_run_code ( ) )
Execute compiled code.