Skip to content

Commit d6a153e

Browse files
committed
chore: Delint
1 parent d610934 commit d6a153e

File tree

1 file changed

+2
-1
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import copy
1616
import itertools
17+
from collections import OrderedDict
1718
from inspect import Signature
1819
from types import MappingProxyType
1920
from typing import Any, Awaitable, Callable, Mapping, Optional, Sequence, Union
@@ -290,7 +291,7 @@ async def __call__(self, *args: Any, **kwargs: Any) -> str:
290291
# Remove None values to prevent server-side type errors. The Toolbox
291292
# server requires specific types for each parameter and will raise an
292293
# error if it receives a None value, which it cannot convert.
293-
payload = {k: v for k, v in payload.items() if v is not None}
294+
payload = OrderedDict({k: v for k, v in payload.items() if v is not None})
294295

295296
# create headers for auth services
296297
headers = {}

0 commit comments

Comments
 (0)