# Released under the MIT License. See LICENSE for details.#"""Cloud related functionality."""from__future__importannotationsfromtypingimportTYPE_CHECKINGimport_babaseifTYPE_CHECKING:pass
[docs]classCloudSubscription:"""User handle to a subscription to some cloud data. Do not instantiate these directly; use the subscribe methods in :class:`~baplus.CloudSubsystem` to create them. """def__init__(self,subscription_id:int)->None:self._subscription_id=subscription_iddef__del__(self)->None:if_babase.app.plusisnotNone:_babase.app.plus.cloud.unsubscribe(self._subscription_id)
# Docs-generation hack; import some stuff that we likely only forward-declared# in our actual source code so that docs tools can find it.fromtypingimport(Coroutine,Any,Literal,Callable,Generator,Awaitable,Sequence,Self)importasynciofromconcurrent.futuresimportFuture