Pylint is throwing an error on a member that works when I run the code. How to remove this error? The following code shows on which line the error is coming.
Class User(db.Model):
# ...
following = db.relationship(
... #Some parameters
)
def follow(self, user):
if not self.is_following(user):
self.following.append(user). # ---- ERROR
def is_following(self, user):
if user.id is None:
return False
return self.following.filter_by(
followed_by_id=user.id).first() is not None
On trying to append
users. I am thrown an error by pylint in VS Code saying.
Instance of 'relationship' has no 'append' member pylint(no-member)
- How can I eliminate this error.
- Is there any special Intellisense for sqlAlchemy?
Note: adding db.relationship.*
in pyLintArgs after --generated-members is also not removing the error