-
Notifications
You must be signed in to change notification settings - Fork 516
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
fix: minor type hint corrections for VcLdpManager #2704
fix: minor type hint corrections for VcLdpManager #2704
Conversation
Signed-off-by: Daniel Bluhm <[email protected]>
57f1b84
to
ad0e60d
Compare
suites.append( | ||
suite( | ||
return [ | ||
cast( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section could use a short comment to understand what is happening, there's a lot going on in the return statement.
I could suggest:
# We iterate through the PROOF_KEY_TYPE_MAPPING dictionary to return an array of it's items as LinkedDataProof objects
Looks good, I see a lot of attributes are marked as Optional, if they were required beforehand, what is the purpose of making them optional? Otherwise I just want to point out that technically the term LinkedDataProof was renamed to DataIntegrityProof. Given the structure of the project this would be a pretty big change to implement however it's important to note that when we are referring to linked data proofs here we are in fact talking about data integrity proofs...maybe a note somewhere in the readme could be worthwhile... |
Good question; the type hints for the changed parameters all had a default value of |
I think this is a good one for us to file an issue on but probably not something to be addressed by this PR directly, IMO. |
I definitely don't think this PR should address this as this would entail a massive restructuring and might become a significant endeavor. Deciding if it's a worthwhile thing to address could be discussed in a separate issue. There's a distinction here between functional coding and proper term definition. AFAIK linked data proofs and data integrity proofs refer to the same thing/concept. |
Signed-off-by: Daniel Bluhm <[email protected]>
proof: dict = None, | ||
verification_method: str = None, | ||
proof: Optional[dict] = None, | ||
verification_method: Optional[str] = None, | ||
date: Union[datetime, None] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
date: Union[datetime, None] = None, | |
date: Optional[datetime] = None, |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
These are some really minor fixes just to make type checking happy and to clarify the use of some values in the VcLdpManager.