mirror of https://github.com/Textualize/rich.git
py36 exception
This commit is contained in:
parent
cbbc490d2b
commit
7536d54442
|
@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [9.12.5] - Unreleased
|
||||
## [9.13.0] - Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
|
|
|
@ -439,11 +439,13 @@ def traverse(_object: Any, max_length: int = None, max_string: int = None) -> No
|
|||
def _traverse(obj: Any, root: bool = False) -> Node:
|
||||
"""Walk the object depth first."""
|
||||
obj_type = type(obj)
|
||||
print(obj.__repr__.__qualname__)
|
||||
py_version = (sys.version_info.major, sys.version_info.minor)
|
||||
if (
|
||||
is_dataclass(obj)
|
||||
and not isinstance(obj, type)
|
||||
and (
|
||||
"__create_fn__" in obj.__repr__.__qualname__
|
||||
"__create_fn__" in obj.__repr__.__qualname__ or py_version == (3, 6)
|
||||
) # Check if __repr__ wasn't overriden
|
||||
):
|
||||
obj_id = id(obj)
|
||||
|
|
Loading…
Reference in New Issue