Skip to content

Commit

Permalink
Merge pull request #2710 from Textualize/fix-attr
Browse files Browse the repository at this point in the history
Fix attr
  • Loading branch information
willmcgugan authored Dec 22, 2022
2 parents 5d3e44b + 7ed200c commit 987c6e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Reversed `pre` and `code` tags in base HTML format https://github.com/Textualize/rich/pull/2642
- Improved detection of `attrs` library, that isn't confused by the presence of the `attr` library.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion questions/logging_color.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ alt_titles:

---

Console markup wont work anywhere else, other than `RichHandler` -- which is why they are disabled by default.
Console markup won't work anywhere else, other than `RichHandler` -- which is why they are disabled by default.

See the docs if you want to [enable console markup](https://rich.readthedocs.io/en/latest/logging.html#logging-handler) in the logging handler.
2 changes: 1 addition & 1 deletion rich/pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
try:
import attr as _attr_module

_has_attrs = True
_has_attrs = hasattr(_attr_module, "ib")
except ImportError: # pragma: no cover
_has_attrs = False

Expand Down

0 comments on commit 987c6e6

Please sign in to comment.