<http://stackoverflow.com/questions/23981852/autoattribute-for-parallel-assignment-sphinx-doc#>
When documenting instance variables, I can do
class Foo:
def __init__(self):
self.spam = 4
"""Docstring for instance attribute spam."""
This doesn't work for parallel assignment
class Foo:
def __init__(self):
self.spam, self.bar, self.moo = 4, 5, 6
"""Docstring for instance attribute spam."""
Is there any way I can document variables when using parallel assignment?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.