I have been reading the this Example Google Style Python Docstrings document to understand how good Python documentation is written. But I can't understand one thing.
When documenting strings, there is this weird notation.
For example when documenting arguments, the documentation specifies they be written like :
Args:
arg1(str): The description for arg1
But, in some other places, the document writes something like :
Args:
param2 (:obj:`str`, optional): The second parameter.
In the second case, why is the string represented as :obj:`str`
and not just plain str
? Why two representations for strings
in the first place? When do I use which?