1. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  2. 24 3月, 2022 1 次提交
  3. 15 7月, 2021 1 次提交
    • R
      Check api compatible (#34119) · 1889d504
      Ren Wei (任卫) 提交于
      * print the signatures of the apis
      
      * some faults, and a test case
      
      * use the FullArgSpec as the ArgSpec, repr>str
      
      为了延续脚本历史,把FullArgsSpec替换为ArgSpec;在逆转回对象时,记得加上inpect.FullArgSpec对象
      
      * script form @zhiboniu
      
      * parsearg
      
      * read argspec from file
      
      * add comments
      
      * refactor check_compatible and its testcases
      
      * skip the empty ArgSepc()
      
      * update the function, get inspect.FullArgSpec instances directly.
      
      * typo
      
      * for the functions using inner-defined VarType or other Class Type not accessable, use the string comparements.
      
      * typo
      
      * logging added
      
      * 若变量和默认值都增加了,用负数索引需要再处理下这个增加的内容
      
      * defaults itself may be NoneType
      
      * defaults added 2 items when args only added 1 item
      
      * same as the previous comment
      
      * enable the check_api_compatible.py
      
      * run test_check_api_compatible.py
      
      * sort the output of print_signatures.py
      1889d504