Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanik Häni authored and Yanik Häni committed Nov 14, 2024
1 parent d2a25fa commit 7e90ae9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def get_data_platform_instance(self) -> DataPlatformInstanceClass:
),
)

def _is_hidden_view(self, dashboard_or_view: Dict):
def _is_hidden_view(self, dashboard_or_view: Dict) -> bool:
# LUID is blank if the view is hidden in the workbook.
# More info here: https://help.tableau.com/current/api/metadata_api/en-us/reference/view.doc.html
return not dashboard_or_view.get(c.LUID)
Expand Down Expand Up @@ -3042,7 +3042,9 @@ def emit_dashboard(
dashboard_snapshot.aspects.append(dashboard_info_class)

tags = self.get_tags(dashboard)
if len(self.config.tags_for_hidden_assets) > 0 and self._is_hidden_view(dashboard):
if len(self.config.tags_for_hidden_assets) > 0 and self._is_hidden_view(
dashboard
):
tags.extend(self.config.tags_for_hidden_assets)

dashboard_snapshot.aspects.append(
Expand Down

0 comments on commit 7e90ae9

Please sign in to comment.