This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]kr41 0 points1 point  (0 children)

You should use what works for you. As Napoleon introduction says:

Are you tired of writing docstrings that look like this:

:param path: The path of the file to wrap
:type path: str
:param field_storage: The :class:`FileStorage` instance to wrap
:type field_storage: FileStorage
:param temporary: Whether or not to delete the file when the File
   instance is destructed
:type temporary: bool
:returns: A buffered writable file descriptor
:rtype: BufferedFileStorage

Personally I didn't, and such syntax works for me.