Closed forrestbao closed 2 years ago
Branch: dev
When I try to use PyDataFront to convert the function calc_default_add in examples/examples.py , I got the following error:
calc_default_add
examples/examples.py
File "/home/forrest/repos/PyDataFront/examples/examples.py", line 118, in <module> def calc_default_add(a: List[int], b: List[int], op: Optional[str] = "add") -> calc_return: File "/home/forrest/repos/PyDataFront/backend/pydatafront/decorator/__init__.py", line 168, in decorator json_schema_props[function_arg_name] = get_type_prop(function_arg_type_name) File "/home/forrest/repos/PyDataFront/backend/pydatafront/decorator/__init__.py", line 68, in get_type_prop typing_list_search_result = re.search( File "/usr/lib/python3.10/re.py", line 200, in search return _compile(pattern, flags).search(string) TypeError: expected string or bytes-like object
The issue seems to be that I used the wrong branch.
Branch: dev
When I try to use PyDataFront to convert the function
calc_default_add
inexamples/examples.py
, I got the following error: