Skip to content

Commit aa69aab

Browse files
authored
chore(toolbox-core): Remove unused typevar variables (#232)
* chore: Add unit test cases * chore: Delint * feat: Warn on insecure tool invocation with authentication This change introduces a warning that is displayed immediately before a tool invocation if: 1. The invocation includes an authentication header. 2. The connection is being made over non-secure HTTP. > [!IMPORTANT] The purpose of this warning is to alert the user to the security risk of sending credentials over an unencrypted channel and to encourage the use of HTTPS. * fix!: Warn about https only during tool initialization * chore: Remove unused typevar variables
1 parent 394fa4d commit aa69aab

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515

1616
import asyncio
1717
from threading import Thread
18-
from typing import Any, Callable, Coroutine, Mapping, Optional, TypeVar, Union
18+
from typing import Any, Callable, Coroutine, Mapping, Optional, Union
1919

2020
from .client import ToolboxClient
2121
from .sync_tool import ToolboxSyncTool
2222

23-
T = TypeVar("T")
24-
2523

2624
class ToolboxSyncClient:
2725
"""

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
from asyncio import AbstractEventLoop
1818
from inspect import Signature
1919
from threading import Thread
20-
from typing import Any, Callable, Coroutine, Mapping, Sequence, TypeVar, Union
20+
from typing import Any, Callable, Coroutine, Mapping, Sequence, Union
2121

2222
from .protocol import ParameterSchema
2323
from .tool import ToolboxTool
2424

25-
T = TypeVar("T")
26-
2725

2826
class ToolboxSyncTool:
2927
"""

0 commit comments

Comments
 (0)