Python: document writer.Field
[babeltrace.git] / bindings / python / writer.py
index 0f57788ea73b9b932350fa401b6fdb9935232dda..287e2256eec5d7c95dec59128115be532c32afa0 100644 (file)
@@ -1128,7 +1128,10 @@ def create_field(field_type):
 
 class Field:
     """
-    Base class, do not instantiate.
+    Base class of all fields. This class is not meant to be
+    instantiated by the user, and neither are its subclasses. Use
+    :meth:`Event.payload` to access specific, concrete fields of
+    an event.
     """
 
     def __init__(self, field_type):
@@ -1169,6 +1172,12 @@ class Field:
 
     @property
     def declaration(self):
+        """
+        Field declaration (subclass of :class:`FieldDeclaration`).
+
+        :exc:`TypeError` is raised on error.
+        """
+
         native_field_type = nbt._bt_ctf_field_get_type(self._f)
 
         if native_field_type is None:
This page took 0.023382 seconds and 4 git commands to generate.