I am using Google Style Python style Docstrings (ex: http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html ) for my Django project. When I create a class and use attribute notations in docstring, Pycharm always says “Unresolved reference”.
class Post(models.Model):
"""
Class for posts.
Attributes:
title(str): Post title.
"""
title = models.CharField(max_length=120)
I understand that PyCharm does not see selffor the function titleand def __init__and writes this error, but in Django I never see the use des __init__for classes inherited from models.
What should I do? Is this my mistake or does PyCharm not see the context in this case? Should I use def init or something else or write docsting differently?
source
share