"""
Constructor
Params
------
:param sw: the coordinates of the southwest corner
:param ne: the coordinates of the northeast corner
"""
includes params for sw and ne, despite the fact that those don't exist at all. This makes the code hard to read and understand. It is also unclear as to if you could use an instance of the Coordinates class to fille the first positional argument.
This code (line 343 in what3words.py ):
includes params for sw and ne, despite the fact that those don't exist at all. This makes the code hard to read and understand. It is also unclear as to if you could use an instance of the Coordinates class to fille the first positional argument.
Maybe rewrite this little piece for clearity.