Closed zigaLuksic closed 12 months ago
It's often not a folder, so it's very confusing...
Ellipsis as a default seemed like the best way to signal that this might still be required (using None would be odd).
None
TiffTask(feature, my_path)
TiffTask(feature)
TypeError
path
TiffTask(feature, path=my_path)
TiffTask(feature, folder=my_path)
thanks for the new docstrings, much clearer :bow:
It's often not a folder, so it's very confusing...
Ellipsis as a default seemed like the best way to signal that this might still be required (using
None
would be odd).TiffTask(feature, my_path)
works as beforeTiffTask(feature)
will raise aTypeError
that the parameterpath
is missing (similar to what would happen before)TiffTask(feature, path=my_path)
works as intendedTiffTask(feature, folder=my_path)
also works as previously intended, but also warns the user