1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-15 20:59:34 +03:00

override: Add manual PEP 484 type annotations

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-20 08:59:35 +01:00
committed by Daniel Berrange
parent 67af8b910b
commit abbd47f4ea
9 changed files with 173 additions and 127 deletions

View File

@ -1,12 +1,12 @@
def getConnect(self):
def getConnect(self) -> 'virConnect':
"""Get the connection that owns the domain that a checkpoint was created for"""
return self.connect()
def getDomain(self):
def getDomain(self) -> 'virDomain':
"""Get the domain that a checkpoint was created for"""
return self.domain()
def listAllChildren(self, flags=0):
def listAllChildren(self, flags: int = 0) -> List['virDomainCheckpoint']:
"""List all child checkpoints and returns a list of checkpoint objects"""
ret = libvirtmod.virDomainCheckpointListAllChildren(self._o, flags)
if ret is None: