[AIRFLOW-5490] Fix incorrect None comparison (#6109)

This commit is contained in:
Alexis-Gu-Ar 2019-09-15 16:37:35 -05:00 коммит произвёл Jakob Homan
Родитель 4f41fb1d1f
Коммит 65600048b5
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -340,8 +340,8 @@ class AirflowSecurityManager(SecurityManager, LoggingMixin):
pvms = (
sesh.query(sqla_models.PermissionView)
.filter(or_(
sqla_models.PermissionView.permission == None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.view_menu == None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.permission is None, # noqa pylint: disable=singleton-comparison
sqla_models.PermissionView.view_menu is None, # noqa pylint: disable=singleton-comparison
))
)
# Since FAB doesn't define ON DELETE CASCADE on these tables, we need