diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py index 6203cb400b..5252574530 100644 --- a/superset/models/dashboard.py +++ b/superset/models/dashboard.py @@ -171,6 +171,7 @@ class Dashboard( # pylint: disable=too-many-instance-attributes @property def datasources(self) -> Set[BaseDatasource]: + # pylint: disable=using-constant-test return {slc.datasource for slc in self.slices if slc.datasource} @property