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

Metadata API: Fix Metadata.sign() return value annotation #1442

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

jku
Copy link
Member

@jku jku commented Jun 11, 2021

We've been returning Signature objects since 49aa0fc.

Also add a test case that does something with the returned signature.

Signed-off-by: Jussi Kukkonen [email protected]


  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

@jku jku added the bug label Jun 11, 2021
@jku jku requested a review from MVrachev June 11, 2021 07:10
@jku
Copy link
Member Author

jku commented Jun 11, 2021

The reason mypy does not complain about this yet is that we currently disable mypy for securesystemslib: This makes Signer.sign() return value Any which matches Dict[str, Any] just fine

@jku jku changed the title Metadata API: Fix Metadata.sign() return value Metadata API: Fix Metadata.sign() return value annotation Jun 14, 2021
Copy link
Collaborator

@MVrachev MVrachev left a comment

Choose a reason for hiding this comment

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

LGTM!

We've been returning Signature objects since 49aa0fc.

Also add a test case that does something with the returned signature.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku force-pushed the fix-sign-return-value branch from caf278c to 505b82a Compare June 23, 2021 11:36
@jku
Copy link
Member Author

jku commented Jun 23, 2021

rebase on develop, no changes

Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@joshuagl joshuagl merged commit ef9a008 into theupdateframework:develop Jun 29, 2021
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