Skip to content

Commit 7e58222

Browse files
committed
lint
1 parent d777b96 commit 7e58222

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/toolbox-core/src/toolbox_core/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from .itransport import ITransport
2323
from .mcp_transport import McpHttpTransport
24-
from .protocol import ToolSchema, Protocol
24+
from .protocol import Protocol, ToolSchema
2525
from .tool import ToolboxTool
2626
from .toolbox_transport import ToolboxTransport
2727
from .utils import identify_auth_requirements, resolve_value

packages/toolbox-core/src/toolbox_core/mcp_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ async def _send_request(
186186
raise RuntimeError(
187187
f"MCP request failed: {json_response['error']['message']}"
188188
)
189-
return json_response["result"]
189+
return json_response["result"]

packages/toolbox-core/src/toolbox_core/protocol.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,23 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
from enum import Enum, auto
15-
1615
from inspect import Parameter
1716
from typing import Any, Optional, Type, Union
1817

1918
from pydantic import BaseModel
2019

20+
2121
class Protocol(Enum):
2222
"""Defines how the client should choose between communication protocols."""
23+
2324
TOOLBOX = auto()
2425
MCP_v20250618 = auto()
2526
MCP_v20250326 = auto()
2627
MCP_v20241105 = auto()
2728
MCP_LATEST = MCP_v20250618
2829
MCP = MCP_LATEST
2930

31+
3032
__TYPE_MAP = {
3133
"string": str,
3234
"integer": int,

0 commit comments

Comments
 (0)