Upload func_call_shema.py
Browse files- dvd/func_call_shema.py +6 -1
dvd/func_call_shema.py
CHANGED
|
@@ -2,7 +2,12 @@
|
|
| 2 |
|
| 3 |
import inspect
|
| 4 |
from collections.abc import Callable
|
| 5 |
-
from typing import Any, Final,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
import pydantic
|
| 8 |
import pydantic.json_schema
|
|
|
|
| 2 |
|
| 3 |
import inspect
|
| 4 |
from collections.abc import Callable
|
| 5 |
+
from typing import Any, Final, TypedDict, TypeVar
|
| 6 |
+
|
| 7 |
+
try:
|
| 8 |
+
from typing import Required # Python 3.11+
|
| 9 |
+
except ImportError:
|
| 10 |
+
from typing_extensions import Required # Python 3.10 and below
|
| 11 |
|
| 12 |
import pydantic
|
| 13 |
import pydantic.json_schema
|