Skip to content

Commit 8149979

Browse files
jacalataclaude
andcommitted
style: apply black 26.3.1 formatting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 563d990 commit 8149979

14 files changed

Lines changed: 7 additions & 21 deletions

‎samples/export.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def main():
7373
# We encode that information above in the const=(...) parameter to the add_argument function to make
7474
# the code automatically adapt for the type of export the user is doing.
7575
# We unroll that information into methods we can call, or objects we can create by using getattr()
76-
(populate_func_name, option_factory_name, member_name, extension) = args.type
76+
populate_func_name, option_factory_name, member_name, extension = args.type
7777
populate = getattr(server.views, populate_func_name)
7878
if args.workbook:
7979
populate = getattr(server.workbooks, populate_func_name)

‎samples/smoke_test.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import logging
55
import tableauserverclient as TSC
66

7-
87
logger = logging.getLogger("Sample")
98
logger.setLevel(logging.DEBUG)
109
logger.addHandler(logging.StreamHandler())

‎tableauserverclient/datetime_helpers.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import datetime
22

3-
43
ZERO = datetime.timedelta(0)
54
HOUR = datetime.timedelta(hours=1)
65

‎tableauserverclient/helpers/strings.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from functools import singledispatch
33
from typing import TypeVar, overload
44

5-
65
# the redact method can handle either strings or bytes, but it can't mix them.
76
# Generic type so we can write the actual logic once, then use singledispatch to
87
# create the replacement text with the correct type

‎tableauserverclient/models/column_item.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def from_response(cls, resp, ns):
5454
all_column_xml = parsed_response.findall(".//t:column", namespaces=ns)
5555

5656
for column_xml in all_column_xml:
57-
(id, name, description, remote_type) = cls._parse_element(column_xml, ns)
57+
id, name, description, remote_type = cls._parse_element(column_xml, ns)
5858
column_item = cls(name)
5959
column_item._set_values(id, name, description, remote_type)
6060
all_column_items.append(column_item)

‎tableauserverclient/models/data_alert_item.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def __init__(self):
3737

3838
def __repr__(self) -> str:
3939
return "<Data Alert {_id} subject={_subject} frequency={_frequency} \
40-
public={_public}>".format(
41-
**self.__dict__
42-
)
40+
public={_public}>".format(**self.__dict__)
4341

4442
@property
4543
def id(self) -> str | None:

‎tableauserverclient/models/subscription_item.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,10 @@ def __init__(self, subject: str, schedule_id: str, user_id: str, target: "Target
2929
def __repr__(self) -> str:
3030
if self.id is not None:
3131
return "<Subscription#{_id} subject({subject}) schedule_id({schedule_id}) user_id({user_id}) \
32-
target({target})".format(
33-
**self.__dict__
34-
)
32+
target({target})".format(**self.__dict__)
3533
else:
3634
return "<Subscription subject({subject}) schedule_id({schedule_id}) user_id({user_id}) \
37-
target({target})".format(
38-
**self.__dict__
39-
)
35+
target({target})".format(**self.__dict__)
4036

4137
@property
4238
def id(self):

‎tableauserverclient/server/endpoint/data_alert_endpoint.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from typing import TYPE_CHECKING
1111

12-
1312
if TYPE_CHECKING:
1413
from ..server import Server
1514
from ..request_options import RequestOptions

‎tableauserverclient/server/endpoint/schedules_endpoint.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def add_to_schedule(
226226
task_type = TaskItem.Type.RunFlow
227227
items.append(
228228
(schedule_id, flow, "flow", RequestFactory.Schedule.add_flow_req, task_type)
229-
) # type:ignore[arg-type]
229+
) # type: ignore[arg-type]
230230

231231
results = (self._add_to(*x) for x in items)
232232
return [x for x in results if not x.result]

‎tableauserverclient/server/pager.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from tableauserverclient.models.pagination_item import PaginationItem
77
from tableauserverclient.server.request_options import RequestOptions
88

9-
109
T = TypeVar("T")
1110

1211

0 commit comments

Comments
 (0)