Python: document writer.VariantField
[babeltrace.git] / bindings / python / writer.py
index 18bcb3cee5cecf940e5ce5c2cefff97d0854ce5e..06664808f0d4088f6c36129424ecccc309981bbc 100644 (file)
@@ -1346,9 +1346,17 @@ class StructureField(Field):
 
 
 class VariantField(Field):
+    """
+    Variant field, based on a
+    :class:`VariantFieldDeclaration` object.
+    """
+
     def field(self, tag):
         """
-        Return the variant's selected field. The "tag" field is the selector enum field.
+        Returns the :class:`Field` selected by the current label of
+        *tag* (:class:`EnumerationField`).
+
+        :exc:`ValueError` is raised on error.
         """
 
         native_instance = nbt._bt_ctf_field_variant_get_field(self._f, tag._f)
This page took 0.022962 seconds and 4 git commands to generate.