mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-12-03 16:23:46 +03:00
sanitytest: Skip type annotations
Teach sanitytest to ignore typing imports Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@@ -106,6 +106,8 @@ for name in dir(libvirt):
|
||||
# in Exception class type reporting.
|
||||
if type(thing) in (int, long):
|
||||
gotenums.append(name)
|
||||
elif getattr(thing, "__module__", "") == "typing":
|
||||
continue
|
||||
elif type(thing) == type or name == "libvirtError":
|
||||
gottypes.append(name)
|
||||
gotfunctions[name] = []
|
||||
|
||||
Reference in New Issue
Block a user