-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load trusted root in a separate private method
Add an additional private method for loading the initial trusted root metadata. The public method update_root() is now used only externally for updating the intiial root. The 'root' property is used only after its initialization in the constructor and is not longer optional which makes mypy happy. This split results in cleaner code and the ability to annotate the 'root' property as non-optional at the cost of some code duplication. Signed-off-by: Teodora Sechkova <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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