TexteaInc / funix

Building web apps without manually creating widgets
http://funix.io
MIT License
99 stars 11 forks source link

Error with calc_default_add #33

Closed forrestbao closed 2 years ago

forrestbao commented 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:

  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
forrestbao commented 2 years ago

The issue seems to be that I used the wrong branch.