mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-23 01:49:58 +00:00
feat(core): APP use new SDK component (#1050)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import Any, get_type_hints, get_origin, get_args
|
||||
from functools import wraps
|
||||
import inspect
|
||||
import asyncio
|
||||
import inspect
|
||||
from functools import wraps
|
||||
from typing import Any, get_args, get_origin, get_type_hints
|
||||
|
||||
|
||||
def _is_instance_of_generic_type(obj, generic_type):
|
||||
@@ -65,10 +65,12 @@ def rearrange_args_by_type(func):
|
||||
|
||||
from dbgpt.util.function_utils import rearrange_args_by_type
|
||||
|
||||
|
||||
@rearrange_args_by_type
|
||||
def sync_regular_function(a: int, b: str, c: float):
|
||||
return a, b, c
|
||||
|
||||
|
||||
assert instance.sync_class_method(1, "b", 3.0) == (1, "b", 3.0)
|
||||
assert instance.sync_class_method("b", 3.0, 1) == (1, "b", 3.0)
|
||||
|
||||
|
Reference in New Issue
Block a user