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

Improve docstrings in Metadata API to be more descriptive #1843

Conversation

ivanayov
Copy link
Collaborator

@ivanayov ivanayov commented Feb 8, 2022

This change updates some parts of the Metadata API docstrings
that did not give enough details and context

Fixes #1600

  • The code follows the Code Style Guidelines
  • [n/a] Tests have been added for the bug fix or new feature
  • [n/a] Docs have been added for the bug fix or new feature

@coveralls
Copy link

coveralls commented Feb 8, 2022

Pull Request Test Coverage Report for Build 2005290094

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.311%

Totals Coverage Status
Change from base Build 1999224414: 0.0%
Covered Lines: 1178
Relevant Lines: 1194

💛 - Coveralls

@ivanayov ivanayov changed the title Improve docstrings in Metadata API to be more descritpive Improve docstrings in Metadata API to be more descriptive Feb 8, 2022
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates, @ivanayov! I am unsure if the "dict -> json/dict" changes really add much clarification, but I don't object.

I do have an alternative suggestion for the Signer docstring though. Let me know what you think.

tuf/api/metadata.py Outdated Show resolved Hide resolved
@ivanayov
Copy link
Collaborator Author

Thank you @lukpueh , I updated with your proposal.

@ivanayov ivanayov force-pushed the metadata_docstrings_imprv_follow_up branch from 9a5cbfd to 4069c95 Compare March 18, 2022 16:32
ivanayov and others added 2 commits March 18, 2022 18:32
This change updates some parts of the Metadata API docstrings
that did not give enough details and context

Fixes theupdateframework#1600

Signed-off-by: Ivana Atanasova <[email protected]>
Change to @lukpueh proposal with more clarification on why and how
the `securesystemslib.signer.Signer` interface is used

Co-authored-by: Lukas Pühringer <[email protected]>

Signed-off-by: Ivana Atanasova <[email protected]>
@ivanayov ivanayov force-pushed the metadata_docstrings_imprv_follow_up branch from 4069c95 to e71aa4a Compare March 18, 2022 16:32
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lukpueh lukpueh merged commit f2e80a8 into theupdateframework:develop Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metadata API: Improve docstrings language
3 participants