class Flask: pass class CurrentApp: def _get_current_object(self): return None current_app = CurrentApp()