Skip to content

Commit

Permalink
Ignore pyright error
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconlad committed May 1, 2024
1 parent 811d144 commit 447e8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool2schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def __init__(self, func: Callable[P, T], **kwargs) -> None:

def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T:

args_list: list = list(args) # Tuple is immutable, thus convert to list
args_list = list(args) # Tuple is immutable, thus convert to list

for i, arg in enumerate(args_list):
for p in self.schema.parameter_schemas.values():
Expand All @@ -243,7 +243,7 @@ def __call__(self, *args: P.args, **kwargs: P.kwargs) -> T:
# Convert the JSON value to the type expected by the method
kwargs[key] = self.schema.parameter_schemas[key].type_schema.decode(kwargs[key])

return self.func(*tuple(args_list), **kwargs)
return self.func(*args_list, **kwargs) # type: ignore

def tool_enabled(self) -> bool:
return True
Expand Down

0 comments on commit 447e8ca

Please sign in to comment.