pyright error report: articles/views.py
Opened this issue · 0 comments
kevinbowen777 commented
Look for fix to the following errors reported by pyright in articles/views.py
:
/home/kbowen/dev/python/repos/django/news/articles/views.py
/home/kbowen/dev/python/repos/django/news/articles/views.py:45:24 - error: Cannot access member "comments" for type "Article"
Member "comments" is unknown (reportGeneralTypeIssues)
/home/kbowen/dev/python/repos/django/news/articles/views.py:50:20 - error: Cannot access member "id" for type "Article"
Member "id" is unknown (reportGeneralTypeIssues)
/home/kbowen/dev/python/repos/django/news/articles/views.py:91:20 - error: Cannot access member "author" for type "Model"
Member "author" is unknown (reportGeneralTypeIssues)
/home/kbowen/dev/python/repos/django/news/articles/views.py:101:20 - error: Cannot access member "author" for type "Model"
Member "author" is unknown (reportGeneralTypeIssues)
/home/kbowen/dev/python/repos/django/news/articles/views.py:152:20 - error: Cannot access member "name" for type "Model"
Member "name" is unknown (reportGeneralTypeIssues)
/home/kbowen/dev/python/repos/django/news/articles/views.py:162:20 - error: Cannot access member "name" for type "Model"
Member "name" is unknown (reportGeneralTypeIssues)