I am writing the following function:
def parse_zip_file(path, handler):
"""
Parse all files contained in a zip file (specified by the path parameter).
Parameters
----------
path : str
The path to the zip file.
handler: function
When looping through all the files contained in the zip file, this method will be called every time
a new file is found. Two arguments are passed. The first argument is the name of the discovered file
and the second argument are the contents of the file.
Returns
-------
None
Nothing is returned.
"""
return None
I was wondering, am I doing this correctly? Is there any way I can check the docstring is correct (I am using PyCharm as an editor)?
More specifically, is function
the right type for the handler argument? Where can I find an overview of all NumPy docstring types I can use? And Is it correct that I use None
if nothing is returned at all?