def get_persister(self): """Return the persister :return: the current persister instance :rtype: :class:`plumpy.Persister` """ from aiida.engine import persistence if self._persister is None: self._persister = persistence.AiiDAPersister() return self._persister
def get_persister(self) -> 'AiiDAPersister': """Return the persister :return: the current persister instance """ from aiida.engine import persistence if self._persister is None: self._persister = persistence.AiiDAPersister() return self._persister