diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-23 12:51:21 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-10-27 18:15:50 +0900 |
commit | 76773413ec729886ca4cf739f286ed9f4ff416ae (patch) | |
tree | 9149328f79969501181e0bac90695ef749f1d587 /.gitignore | |
parent | 7038a505cdfd85a9770329825bb50c184d9ac45f (diff) | |
download | buildstream-76773413ec729886ca4cf739f286ed9f4ff416ae.tar.gz |
Adding _DisplayKey type
Instead of passing around untyped tuples for cache keys, lets have
a clearly typed object for this.
This makes for more readable code, and additionally corrects the
data model statement of intent that some cache keys should be displayed
as "dim", instead informing the frontend about whether the cache key
is "strict" or not, allowing the frontend to decide how to display
a strict or non-strict key.
This patch does the following:
* types.py: Add _DisplayKey
* element.py: Return a _DisplayKey from Element._get_display_key()
* Other sources: Updated to use the display key object
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions