I use Google Style Python Docstrings like in this Example for my Django's project. When i create a class and using an attributes notation in docstring, Pycharm always say - "Unresolved reference".
class Post(models.Model):
"""
Class for posts.
Attributes:
title(str): Post title.
"""
title = models.CharField(max_length=120)
I understand that PyCharm doesn't see self
for title
and def __init__()
function and write this error, but in Django I've never seen using def __init__()
for classes inherited from models
.
What should I do? Is this my error or does PyCharm not see context in this case? Should I use def __init__()
or something else or write docsting in another way?