summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-10-09 18:39:24 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-10-09 18:39:24 +0900
commit885bd9466eaf40097005a5e1c54f1a9984be5984 (patch)
treec102ded8c87da811b3aefc593d3f06b65a45a2d2 /CONTRIBUTING.rst
parentac0776f8b13885119127d4cce73327bcd07fec22 (diff)
downloadbuildstream-885bd9466eaf40097005a5e1c54f1a9984be5984.tar.gz
CONTRIBUTING.rst: Added note about sphinx supporting docstrings on instance variables
Python does not natively support this, but sphinx does parse them and includes these in the generated documentation.
Diffstat (limited to 'CONTRIBUTING.rst')
-rw-r--r--CONTRIBUTING.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index bf10950ea..781cd58ea 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -270,6 +270,11 @@ comments and docstrings.
*Since: 1.2*
"""
+.. note::
+
+ Python does not really support docstrings on instance variables, but
+ sphinx does pick them up includes them in the generated documentation.
+
**Internal instance variable**::
def __init__(self, context, element):