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:
committed by
Daniel Berrange
parent
67af8b910b
commit
abbd47f4ea
@ -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:
|
||||
|
Reference in New Issue
Block a user