You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/25 15:32:05 UTC
[GitHub] [airflow] nuclearpinguin edited a comment on issue #7484:
[AIRFLOW-6864] Make airflow/jobs pylint compatible
nuclearpinguin edited a comment on issue #7484: [AIRFLOW-6864] Make airflow/jobs pylint compatible
URL: https://github.com/apache/airflow/pull/7484#issuecomment-590924614
```
************* Module airflow.jobs.scheduler_job
airflow/jobs/scheduler_job.py:1031:16: E1101: Method 'state' has no 'is_' member (no-member)
```
@ashb
I assume that the difference is that here `models.TaskInstance.state.in_(old_states)` we are referencing `state` attribute of sqla model. And here `models.DagRun.state.is_(None)` reference a method of `DagRun`:
```python
@declared_attr
def state(self):
return synonym('_state',
descriptor=property(self.get_state, self.set_state))
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services