Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import `__future__` annotation will break mosec.utils.parse_func_type. the `__main__.Request` would be changed to `'Request'`: ``` 2024-06-15T00:55:54.001558Z WARNING mosec::coordinator.py:300 [1869971]: Traceback (most recent call last): File "/home/user/mosec/lib/python3.10/site-packages/mosec/coordinator.py", line 274, in coordinate data = [ File "/home/user/mosec/lib/python3.10/site-packages/mosec/coordinator.py", line 275, in <listcomp> self.decode(payload, state) File "/home/user/mosec/lib/python3.10/site-packages/mosec/coordinator.py", line 243, in decode self.worker.deserialize(payload) File "/home/user/mosec/lib/python3.10/site-packages/mosec/mixin/typed_worker.py", line 45, in deserialize return msgspec.msgpack.decode(data, type=self._input_typ) TypeError: Type ''Request'' is not supported ```
- Loading branch information