How to document python function parameter types?

前端 未结 6 1346
名媛妹妹
名媛妹妹 2020-12-15 05:40

I know that the parameters can be any object but for the documentation it is quite important to specify what you would expect.

First is how to specify a parameter ty

6条回答
  •  难免孤独
    2020-12-15 06:27

    Doxygen is great for C++, but if you are working with mostly python code you should give sphinx a try. If you choose sphinx then all you need to do is follow pep8.

提交回复
热议问题