diff --git a/metadata-ingestion/src/datahub/ingestion/source/tableau.py b/metadata-ingestion/src/datahub/ingestion/source/tableau.py index c271fa051df0af..3657548bd0d755 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/tableau.py +++ b/metadata-ingestion/src/datahub/ingestion/source/tableau.py @@ -1099,9 +1099,7 @@ def emit_sheets_as_charts(self, workbook: Dict) -> Iterable[MetadataWorkUnit]: # Tags tag_list = sheet.get("tags", []) if tag_list and self.config.ingest_tags: - tag_list_str = [ - t.get("name", "") for t in tag_list if t is not None - ] + tag_list_str = [t.get("name", "") for t in tag_list if t is not None] chart_snapshot.aspects.append( builder.make_global_tag_aspect_with_tag_list(tag_list_str) ) @@ -1248,9 +1246,7 @@ def emit_dashboards(self, workbook: Dict) -> Iterable[MetadataWorkUnit]: tag_list = dashboard.get("tags", []) if tag_list and self.config.ingest_tags: - tag_list_str = [ - t.get("name", "") for t in tag_list if t is not None - ] + tag_list_str = [t.get("name", "") for t in tag_list if t is not None] dashboard_snapshot.aspects.append( builder.make_global_tag_aspect_with_tag_list(tag_list_str) )