Repository navigation
model/vulnerability: fix optional type - #61
Merged
Merged
Conversation
woodruffw
force-pushed
the
ww/vuln-model-type-error
branch
from
November 9, 2021 18:16
2dae7b4 to
7d57dcc
Compare
6 tasks done
jkowalleck
approved these changes
Nov 10, 2021
jkowalleck
requested changes
Nov 10, 2021
jkowalleck
approved these changes
Nov 10, 2021
woodruffw
force-pushed
the
ww/vuln-model-type-error
branch
from
November 10, 2021 15:12
aa1e9aa to
636b368
Compare
Signed-off-by: William Woodruff <[email protected]>
woodruffw
force-pushed
the
ww/vuln-model-type-error
branch
from
November 10, 2021 15:13
636b368 to
792d3c7
Compare
Contributor
Author
|
Okay, I've rebased. The typechecking for #52 covered most of the changes here, but I re-added the default parameter values that were removed as part of that PR -- those defaults made constructing a |
Closed
madpah
dismissed
jkowalleck’s stale review
November 10, 2021 15:38
@woodruffw has rebased as requested.
Contributor
Author
|
Thanks! Would it be possible to get a release cut for this? |
Collaborator
|
It's happening as I write this :-) Should be out shortly. |
Contributor
Author
|
Wonderful, thanks a ton! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a small bug when constructing a
Vulnerabilitymodel that eventually gets serialized to XML:get_ratingsexpectsself._ratingsto be aList[VulnerabilityRating]instead of anOptional[...], so we default-initialize it if the constructor is passedNone.There are other type errors in the same constructor; I'll update this PR as I continue to try to get XML serialization working in
pip-audit.Downstream: pypa/pip-audit#109