2017-03-14 4 views
0

나는 CS50 과정을 따르고 있으며 application.py에 문제가 있습니다. 나는 클라우드 9 코드 편집기에서 다음과 같은 경고 (에이스)를 얻고 있었다 :클라우드 9의 pylint 오류 메시지 CS50

ignored-modules=flask_sqlalchemy 
ignored-classes=SQLObject,Registrant 

이 제거 가지고 : 나는 다음 두 줄을 홈 디렉토리에 파일 .pylintrc을 생성하고 추가

instance of SQLAlchemy has no column member 
instance of SQLAlchemy has no integer member 
instance of SQLAlchemy has no text member 
instance of scoped_session has no add member 
instance of scoped_session has no commit member 
Class Registrants has no query member 

대부분의 오류하지만이 남아있어의 :

: 여기

instance of scoped_session has no add member 
instance of scoped_session has no commit member 

문제를 일으키는 코드는

답변

1

는 .pylintrc 파일에 추가 할 필요 :

ignored-classes=SQLObject,Registrant,scoped_session 

분명히 파이썬 런타임에 몇 가지 클래스를 생성하고 pylint 그 정보를 위로 선택 할 수 없습니다.

문제를 해결하는 대신 문제를 무시하므로이 답변에 만족하지 않습니다. 누구든지 더 나은 해결책이 있다면 알려주십시오. CS50의 직원은이 문제를 조사하고 있지만 다른 해결책은 아직 없습니다.