0

I am trying to use the google-style directive with pdoc, but it doesn't work on my side. 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

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.

sam
  • 19
  • 1
  • 4

1 Answers1

3

Did you tell pdoc to process your docstrings as Google-style docstrings?

Using pdoc --docformat google ./alf.py, I get the following result:

pdoc screenshot

Maximilian Hils
  • 6,309
  • 3
  • 27
  • 46