python-artifactory icon indicating copy to clipboard operation
python-artifactory copied to clipboard

`objects.artifact` `delete` function docstring return type is incorrect

Open kkaja123 opened this issue 11 months ago • 0 comments

The docstring says that the ArtifactoryArtifact delete() method returns a bool, but it doesn't actually return a bool. self._delete returns an HTTP Response, so maybe that should be used to determine whether or not to return True or False. Otherwise, if delete shouldn't return anything, then remove the line from the docstring.

https://github.com/anancarv/python-artifactory/blob/1f05a4c654b3f631ba0bbe2a3c4b555bdb781046/pyartifactory/objects/artifact.py#L363-L367

kkaja123 avatar Jan 27 '25 17:01 kkaja123