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 2019/06/22 08:36:59 UTC

[GitHub] [airflow] BasPH commented on issue #5440: [AIRFLOW-4819] Fix singleton-comparision errors in pylint

BasPH commented on issue #5440: [AIRFLOW-4819] Fix singleton-comparision errors in pylint
URL: https://github.com/apache/airflow/pull/5440#issuecomment-504644455
 
 
   @mik-laj FYI SQLAlchemy has some linter-friendly functions to avoid e.g. `== None` and make linters happy:
   
   ```python
   query.filter(User.name == None)
   
   # linter friendly equivalent:
   query.filter(User.name.is_(None))
   ```
   
   More here: https://docs.sqlalchemy.org/en/13/orm/tutorial.html#common-filter-operators

----------------------------------------------------------------
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