aghiadbakry commited on
Commit
04a55c9
·
verified ·
1 Parent(s): e36ffe3

Upload func_call_shema.py

Browse files
Files changed (1) hide show
  1. 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, Required, TypedDict, TypeVar
 
 
 
 
 
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