Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added docstring for the endpoints scripts #287

Closed

Conversation

Black-Pearl25
Copy link
Contributor

No description provided.

@Kamforka
Copy link
Collaborator

Good job, however I'd not include parameters in the docstrings. Type hints render those useless. You already see what are the parameters and their type from the signature of the class/method.

So it doesn't really bring any value, but on the other hand you will see yourself catching up with docstrings whenever you change the signature.

@Black-Pearl25
Copy link
Contributor Author

Thank you, actually it's for generating a document in pydoc format, and that way it kinda explains what each parameter stands for, that's why i did it like that, i thought it'd be helpful.

@Kamforka
Copy link
Collaborator

Kamforka commented Jun 19, 2023 via email

@Black-Pearl25
Copy link
Contributor Author

Actually, I have submitted another pull request for an updated version of the documentation of thehive4py, based on the current one. The updated documentation includes proper usage examples of the API. Initially, I felt the need for a docstring, which is why I wrote it and thought it would be beneficial for clarity. Hence, I submitted the pull request. However, if you believe it is unnecessary, I can always close this pull request.

@Kamforka
Copy link
Collaborator

Kamforka commented Jun 19, 2023 via email

@Black-Pearl25
Copy link
Contributor Author

Alright thank you, i appreciate you clarifying things, i'll do that.

@Kamforka Kamforka added the 2.x label Sep 18, 2023
@nadouani
Copy link
Contributor

@Kamforka is this going to be considered or should be closed as status:invalid ?

@Kamforka
Copy link
Collaborator

We could do this as part of #301

@Kamforka
Copy link
Collaborator

Will be done in #301

@Kamforka Kamforka closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants