[Dy2stat]support Python3 type annotation (#36544)
* Support Py3 type annotations in @to_static
* support type hint for args in func
* support type hint assign
* if annotation and value(Constant) are diffent type, we use value type
* polish type_from_annotation()
* code format
* code format
* remove useless commentary
* fix review
Co-authored-by: NAurelius84 <zhangliujie@baidu.com>
Showing
想要评论请 注册 或 登录