1
0
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:
Philipp Hahn
2018-11-20 08:59:35 +01:00
parent b5f7beb931
commit 8a81fc6f2b

View File

@@ -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] = []