# Released under the MIT License. See LICENSE for details.#"""Provides AppMode functionality."""from__future__importannotationsfromtypingimportTYPE_CHECKING,overridefrombacommon.appimportAppExperienceimport_babasefrombabase._appmodeimportAppModefrombabase._appintentimportAppIntentExec,AppIntentDefaultifTYPE_CHECKING:frombabaseimportAppIntent# ba_meta export babase.AppModeclassEmptyAppMode(AppMode):"""An AppMode that does not do much at all."""
@override@classmethoddef_supports_intent(cls,intent:AppIntent)->bool:# We support default and exec intents currently.returnisinstance(intent,AppIntentExec|AppIntentDefault)