Skip to content

Commit dbee0b5

Browse files
author
zhansheng.lzs
committed
style: apply pre-commit hooks (black, add-trailing-comma, pylint)
1 parent 4f86b8f commit dbee0b5

2 files changed

Lines changed: 295 additions & 137 deletions

File tree

‎dashscope/client/base_api.py‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,10 @@ def delete(
12361236
url,
12371237
headers={
12381238
**_workspace_header(workspace),
1239-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1239+
**default_headers(
1240+
api_key,
1241+
module=get_api_module(cls.__module__),
1242+
),
12401243
**kwargs.pop("headers", {}),
12411244
},
12421245
timeout=timeout,
@@ -1286,7 +1289,10 @@ def call(
12861289
headers={
12871290
"Content-Type": "application/json; charset=utf-8",
12881291
**_workspace_header(workspace),
1289-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1292+
**default_headers(
1293+
api_key,
1294+
module=get_api_module(cls.__module__),
1295+
),
12901296
**kwargs.pop("headers", {}),
12911297
},
12921298
timeout=timeout,
@@ -1421,7 +1427,10 @@ def put(
14211427
headers={
14221428
"Content-Type": "application/json; charset=utf-8",
14231429
**_workspace_header(workspace),
1424-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1430+
**default_headers(
1431+
api_key,
1432+
module=get_api_module(cls.__module__),
1433+
),
14251434
**kwargs.pop("headers", {}),
14261435
},
14271436
timeout=timeout,
@@ -1473,7 +1482,10 @@ def upload( # pylint: disable=unused-argument
14731482
data=js,
14741483
headers={
14751484
**_workspace_header(workspace),
1476-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1485+
**default_headers(
1486+
api_key,
1487+
module=get_api_module(cls.__module__),
1488+
),
14771489
**kwargs.pop("headers", {}),
14781490
},
14791491
files=files,
@@ -1523,7 +1535,10 @@ def cancel(
15231535
url,
15241536
headers={
15251537
**_workspace_header(workspace),
1526-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1538+
**default_headers(
1539+
api_key,
1540+
module=get_api_module(cls.__module__),
1541+
),
15271542
**kwargs.pop("headers", {}),
15281543
},
15291544
timeout=timeout,
@@ -1630,7 +1645,10 @@ def stream_events(
16301645
url,
16311646
headers={
16321647
**_workspace_header(workspace),
1633-
**default_headers(api_key, module=get_api_module(cls.__module__)),
1648+
**default_headers(
1649+
api_key,
1650+
module=get_api_module(cls.__module__),
1651+
),
16341652
**kwargs.pop("headers", {}),
16351653
},
16361654
stream=True,

0 commit comments

Comments
 (0)