Skip to content

Commit 0d23bfa

Browse files
committed
lint
1 parent e4c6d1f commit 0d23bfa

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

packages/toolbox-llamaindex/src/toolbox_llamaindex/async_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typing import Any, Callable, Optional, Union, Mapping, Awaitable
15+
from typing import Any, Awaitable, Callable, Mapping, Optional, Union
1616
from warnings import warn
1717

1818
from aiohttp import ClientSession
@@ -41,7 +41,9 @@ def __init__(
4141
url: The base URL of the Toolbox service.
4242
session: An HTTP client session.
4343
"""
44-
self.__core_client = ToolboxCoreClient(url=url, session=session, client_headers=client_headers)
44+
self.__core_client = ToolboxCoreClient(
45+
url=url, session=session, client_headers=client_headers
46+
)
4547

4648
async def aload_tool(
4749
self,
@@ -188,7 +190,7 @@ def load_toolset(
188190
strict: bool = False,
189191
) -> list[AsyncToolboxTool]:
190192
raise NotImplementedError("Synchronous methods not supported by async client.")
191-
193+
192194
def add_headers(
193195
self,
194196
headers: Mapping[str, Union[Callable[[], str], Callable[[], Awaitable[str]]]],

packages/toolbox-llamaindex/src/toolbox_llamaindex/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def __init__(
3737
Args:
3838
url: The base URL of the Toolbox service.
3939
"""
40-
self.__core_client = ToolboxCoreSyncClient(url=url, client_headers=client_headers)
40+
self.__core_client = ToolboxCoreSyncClient(
41+
url=url, client_headers=client_headers
42+
)
4143

4244
async def aload_tool(
4345
self,
@@ -290,7 +292,7 @@ def load_toolset(
290292
for core_sync_tool in core_sync_tools:
291293
tools.append(ToolboxTool(core_tool=core_sync_tool))
292294
return tools
293-
295+
294296
def add_headers(
295297
self,
296298
headers: Mapping[str, Union[Callable[[], str], Callable[[], Awaitable[str]]]],

packages/toolbox-llamaindex/tests/test_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ async def test_add_headers(self, mock_client):
357357
mock_client.add_headers(headers)
358358
mock_client._AsyncToolboxClient__core_client.add_headers.assert_called_once_with(
359359
headers
360-
)
360+
)

0 commit comments

Comments
 (0)