pypae / pydantic-typer

Typer extension to enable pydantic support
MIT License
5 stars 0 forks source link

Error 'SyntaxError: invalid syntax' was encountered in python3.10 #9

Open hezhefly opened 1 day ago

hezhefly commented 1 day ago
File "/data/heweicheng/miniconda3/envs/xinference/lib/python3.10/site-packages/pydantic_typer/main.py", line 156
    return origin[*updated_args]
                  ^
SyntaxError: invalid syntax
pypae commented 1 day ago

Thanks for reporting. Seems like this syntax was introduced in Python 3.11 with PEP 646. I just pushed a fix and released version 0.0.12.

pypae commented 1 day ago

Looks like the tests are still failing, I'm having another look later.