python: Apply typemap for VariantBase to VariantContainerBase.

Fixes #1480.
This commit is contained in:
Martin Ling 2020-01-05 18:25:13 +00:00
parent f0362f595a
commit 8491cf7cad
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ typedef guint pyg_flags_type;
g_free(value);
}
/* Use the same typemap above for Glib::VariantContainerBase */
%apply Glib::VariantBase { Glib::VariantContainerBase }
/* Map from callable PyObject to LogCallbackFunction */
%typecheck(SWIG_TYPECHECK_POINTER) sigrok::LogCallbackFunction {
$1 = PyCallable_Check($input);