Skip to content

Commit

Permalink
Revert "formatting"
Browse files Browse the repository at this point in the history
This reverts some of the files edited by black locally
  • Loading branch information
jacalata committed Oct 11, 2024
1 parent 3953b60 commit 67f10a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions tableauserverclient/server/pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@

@runtime_checkable
class Endpoint(Protocol[T]):
def get(self, req_options: Optional[RequestOptions]) -> tuple[list[T], PaginationItem]:
...
def get(self, req_options: Optional[RequestOptions]) -> tuple[list[T], PaginationItem]: ...


@runtime_checkable
class CallableEndpoint(Protocol[T]):
def __call__(self, __req_options: Optional[RequestOptions], **kwargs) -> tuple[list[T], PaginationItem]:
...
def __call__(self, __req_options: Optional[RequestOptions], **kwargs) -> tuple[list[T], PaginationItem]: ...


class Pager(Iterable[T]):
Expand Down
6 changes: 2 additions & 4 deletions tableauserverclient/server/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ def __iter__(self: Self) -> Iterator[T]:
return

@overload
def __getitem__(self: Self, k: Slice) -> list[T]:
...
def __getitem__(self: Self, k: Slice) -> list[T]: ...

@overload
def __getitem__(self: Self, k: int) -> T:
...
def __getitem__(self: Self, k: int) -> T: ...

def __getitem__(self, k):
page = self.page_number
Expand Down
6 changes: 3 additions & 3 deletions tableauserverclient/server/request_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,9 @@ def update_req(self, workbook_item):
if data_freshness_policy_config.option == "FreshEvery":
if data_freshness_policy_config.fresh_every_schedule is not None:
fresh_every_element = ET.SubElement(data_freshness_policy_element, "freshEverySchedule")
fresh_every_element.attrib[
"frequency"
] = data_freshness_policy_config.fresh_every_schedule.frequency
fresh_every_element.attrib["frequency"] = (
data_freshness_policy_config.fresh_every_schedule.frequency
)
fresh_every_element.attrib["value"] = str(data_freshness_policy_config.fresh_every_schedule.value)
else:
raise ValueError(f"data_freshness_policy_config.fresh_every_schedule must be populated.")
Expand Down

0 comments on commit 67f10a9

Please sign in to comment.