[英]Pdoc doesn't recognize Google-Style
I am trying to use the google-style directive with pdoc, but it doesn't work on my side.我正在尝试将 google-style 指令与 pdoc 一起使用,但它在我这边不起作用。 Where am I wrong?
我哪里错了? Below is my code.
下面是我的代码。 Please help me.
请帮我。 :)
:)
def save(a: str, b:str) -> set:
"""
Do something
Args:
a (str): The first parameter.
b (str): The second parameter.
Returns:
Set: The return value. If result has values then Set of string, otherwise empty set.
"""
OUTPUT OUTPUT
Do something
做一点事
Args: a (str): The first parameter.
Args:a(str):第一个参数。 b (str): The second parameter.
b(str):第二个参数。
Returns: Set: The return value.
返回: Set:返回值。 If result has values then Set of string, otherwise empty set.
如果结果有值,则为字符串集,否则为空集。
Did you tell pdoc to process your docstrings as Google-style docstrings ?您是否告诉 pdoc 将您的文档字符串处理为 Google 样式的文档字符串?
Using pdoc --docformat google./alf.py
, I get the following result:使用
pdoc --docformat google./alf.py
,我得到以下结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.