You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gets copy.deepcopy-ed around a lot, as a template for a dict literal. The code would be cleaner and have more useful type hinting if this were replaced with a data class.
We want to make sure that whatever solution we use is not vulnerable to crashing because a field is added, so maybe skipping straight to data classes is the wrong approach. I'll research some additional approaches.
For example:
vunnel/src/vunnel/utils/vulnerability.py
Lines 16 to 27 in c615dca
copy.deepcopy
-ed around a lot, as a template for a dict literal. The code would be cleaner and have more useful type hinting if this were replaced with a data class.Examples of copying
vunnel/src/vunnel/utils/oval_parser.py
Lines 160 to 170 in c615dca
and
vunnel/src/vunnel/providers/wolfi/parser.py
Lines 103 to 109 in c615dca
The text was updated successfully, but these errors were encountered: