Skip to content

Commit

Permalink
style: black
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods committed Aug 23, 2024
1 parent 5d6e25c commit d4a2ab6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tableauserverclient/server/endpoint/datasources_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ def schedule_extract_refresh(
) -> List["AddResponse"]: # actually should return a task
return self.parent_srv.schedules.add_to_schedule(schedule_id, datasource=item)


@api(version="1.0")
def add_tags(self, item: Union[DatasourceItem, str], tags: Union[Iterable[str], str]) -> Set[str]:
return super().add_tags(item, tags)
Expand All @@ -472,7 +471,7 @@ def delete_tags(self, item: Union[DatasourceItem, str], tags: Union[Iterable[str
@api(version="1.0")
def update_tags(self, item: DatasourceItem) -> None:
return super().update_tags(item)

def filter(self, *invalid, page_size: Optional[int] = None, **kwargs) -> QuerySet[DatasourceItem]:
"""
Queries the Tableau Server for items using the specified filters. Page
Expand Down
3 changes: 1 addition & 2 deletions tableauserverclient/server/endpoint/views_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def delete_tags(self, item: Union[ViewItem, str], tags: Union[Iterable[str], str
@api(version="1.0")
def update_tags(self, item: ViewItem) -> None:
return super().update_tags(item)

def filter(self, *invalid, page_size: Optional[int] = None, **kwargs) -> QuerySet[ViewItem]:
"""
Queries the Tableau Server for items using the specified filters. Page
Expand Down Expand Up @@ -258,4 +258,3 @@ def filter(self, *invalid, page_size: Optional[int] = None, **kwargs) -> QuerySe
"""

return super().filter(*invalid, page_size=page_size, **kwargs)

3 changes: 1 addition & 2 deletions tableauserverclient/server/endpoint/workbooks_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def delete_tags(self, item: Union[WorkbookItem, str], tags: Union[Iterable[str],
@api(version="1.0")
def update_tags(self, item: WorkbookItem) -> None:
return super().update_tags(item)

def filter(self, *invalid, page_size: Optional[int] = None, **kwargs) -> QuerySet[WorkbookItem]:
"""
Queries the Tableau Server for items using the specified filters. Page
Expand Down Expand Up @@ -579,4 +579,3 @@ def filter(self, *invalid, page_size: Optional[int] = None, **kwargs) -> QuerySe
"""

return super().filter(*invalid, page_size=page_size, **kwargs)

0 comments on commit d4a2ab6

Please sign in to comment.