resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · Textualize/rich
Clear hashed cache when clearing meta. This fixes #2942. ## Type of changes - [x] Bug fix - [ ] New feature - [ ] Documentation / docstrings - [ ] Tests - [ ] Other ## Checklist - [x] I've run the latest [black](https://github.com/psf/black) with default args on new code. - [x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate. - [x] I've added tests for new code. - [x] I accept that @willmcgugan may be pedantic in the code review.
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/rich/style.py
+++ b/rich/style.py
@@ -663,7 +663,7 @@ def clear_meta_and_links(self) -> "Style":
style._set_attributes = self._set_attributes
style._link = None
style._link_id = ""
- style._hash = self._hash
+ style._hash = None
style._null = False
style._meta = None
return style........................... [100%] 27 passed in 0.05s