[Notes] [Git][BuildStream/buildstream][master] CONTRIBUTING.rst: Added note about sphinx supporting docstrings on instance variables



Title: GitLab

Tristan Van Berkom pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • CONTRIBUTING.rst
    ... ... @@ -270,6 +270,11 @@ comments and docstrings.
    270 270
         *Since: 1.2*
    
    271 271
         """
    
    272 272
     
    
    273
    +.. note::
    
    274
    +
    
    275
    +   Python does not really support docstrings on instance variables, but
    
    276
    +   sphinx does pick them up includes them in the generated documentation.
    
    277
    +
    
    273 278
     **Internal instance variable**::
    
    274 279
     
    
    275 280
       def __init__(self, context, element):
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]