Skip to content

megemini/ArgsTyping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ArgsTyping

通过 docstring 中的 Args/ParametersReturns/Yields 进行类型标注。

可以直接覆盖原文件

> python args_typing.py -i /home/shun/Documents/Projects/paddle/megemini/Paddle/python/paddle/tensor/math.py

或者手动设置输出文件

> python args_typing.py -i /home/shun/Documents/Projects/paddle/megemini/Paddle/python/paddle/tensor/math.py -o ./tmp.py

注意

  • 此脚本只做简单的类型标注,标注的正确与否仍需通过 mypy 等工具进行确认。

About

typing from docstring's args

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages