Modernize and update rbtools.api.cache with types
Review Request #12606 — Created Sept. 15, 2022 and submitted
This change updates the
rbtools.api.cache
module to modernize the
code, getting rid ofsix
, updating documentation, and adding type
annotations.While I was in here, I also changed the
clearcache
command a bit to
make the command responsible for printing the success message instead of
theclear_cache
method in the cache module. This allows us to use
self.stdout
rather than just calling
- Ran unit tests.
- Posted some review requests.
- Cleared my cache file.
- Commits:
-
Summary ID 8af04151615e17a27344291e8cd269e26c7193d2 092c14b8d9702f2324eea3929a2df216ff3531b4 - Diff:
-
Revision 2 (+538 -136)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.
- Commits:
-
Summary ID 092c14b8d9702f2324eea3929a2df216ff3531b4 b443fd4f1b2986508ae8917268c34c12dc6f4892 - Diff:
-
Revision 3 (+650 -144)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.