Skip to content

Commit 5f5aedc

Browse files
author
lmh
committed
fix: lint
1 parent 6e44fd9 commit 5f5aedc

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

volcenginesdkarkruntime/_utils/_key_agreement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def decrypt_corner_case(key: bytes, nonce: bytes, data: str) -> str:
108108
decrypted = aes_gcm_decrypt_base64_string(key, nonce, data[: i + 4])
109109
if i + 4 == len(data):
110110
return decrypted
111-
return decrypted + decrypt_corner_case(key, nonce, data[i + 4 :])
111+
return decrypted + decrypt_corner_case(key, nonce, data[i + 4:])
112112
except Exception:
113113
pass
114114

volcenginesdkarkruntime/_utils/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def removeprefix(string: str, prefix: str) -> str:
360360
Backport of `str.removeprefix` for Python < 3.9
361361
"""
362362
if string.startswith(prefix):
363-
return string[len(prefix) :]
363+
return string[len(prefix):]
364364
return string
365365

366366

volcenginesdkarkruntime/resources/files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from .._base_client import AsyncPaginator, make_request_options
3737
from ..types.file_object import FileObject
3838
from ..types.file_deleted import FileDeleted
39-
from ..types.file_purpose import FilePurpose
4039

4140
__all__ = ["Files", "AsyncFiles"]
4241

volcenginesdkarkruntime/types/responses/mcp_tool_param.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@
88
# available at https://github.com/openai/openai-python/blob/main/LICENSE.
99
#
1010
# This modified file is released under the same license.
11+
from typing import Optional, Dict, Union, List
1112

1213
from typing_extensions import (
1314
Literal,
1415
TypedDict,
1516
Required,
16-
Optional,
17-
Dict,
1817
TypeAlias,
19-
Union,
20-
List,
2118
)
2219

2320
__all__ = [
@@ -56,7 +53,6 @@ class McpRequireApprovalMcpToolApprovalFilter(TypedDict, total=False):
5653

5754
McpAllowedTools: TypeAlias = Union[List[str], McpAllowedToolsMcpAllowedToolsFilter]
5855

59-
6056
McpRequireApproval: TypeAlias = Union[
6157
McpRequireApprovalMcpToolApprovalFilter, Literal["always", "never"]
6258
]

0 commit comments

Comments
 (0)