← mined_oracle

rich_2575

failed WRONG_FIX UNSUBMITTED wrong_fix_unsubmitted(None) · None tool calls · 0 s · Textualize/rich

Task input

(not found in data/tasks.jsonl)

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Patch

--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -2,7 +2,7 @@
 
 The following people have contributed to the development of Rich:
 
-<!-- Add your name below, sort alphabetically by surname. Link to Github profile / your home page. -->
+<!-- Add your name below, sort alphabetically by surname. Link to GitHub profile / your home page. -->
 
 - [Patrick Arminio](https://github.com/patrick91)
 - [Gregory Beauregard](https://github.com/GBeauregard/pyffstream)
@@ -21,6 +21,7 @@ The following people have contributed to the development of Rich:
 - [Lanqing Huang](https://github.com/lqhuang)
 - [Finn Hughes](https://github.com/finnhughes)
 - [Josh Karpel](https://github.com/JoshKarpel)
+- [Hugo van Kemenade](https://github.com/hugovk)
 - [Andrew Kettmann](https://github.com/akettmann)
 - [Martin Larralde](https://github.com/althonos)
 - [Hedy Li](https://github.com/hedythedev)
@@ -55,4 +56,4 @@ The following people have contributed to the development of Rich:
 - [Motahhar Mokfi](https://github.com/motahhar)
 - [Tomer Shalev](https://github.com/tomers)
 - [Serkan UYSAL](https://github.com/uysalserkan)
-- [Zhe Huang](https://github.com/onlyacat)
\ No newline at end of file
+- [Zhe Huang](https://github.com/onlyacat)
--- a/rich/pretty.py
+++ b/rich/pretty.py
@@ -642,7 +642,6 @@ def traverse(
             return Node(value_repr="...")
 
         obj_type = type(obj)
-        py_version = (sys.version_info.major, sys.version_info.minor)
         children: List[Node]
         reached_max_depth = max_depth is not None and depth >= max_depth
 
@@ -780,7 +779,7 @@ def traverse(
             is_dataclass(obj)
             and not _safe_isinstance(obj, type)
             and not fake_attributes
-            and (_is_dataclass_repr(obj) or py_version == (3, 6))
+            and _is_dataclass_repr(obj)
         ):
             push_visited(obj_id)
             children = []
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ minversion = 3.9.0
 envlist =
     lint
     docs
-    py{36,37,38,39}
+    py{37,38,39,310}
 isolated_build = True
 
 [testenv]

Test output

show
...F
=================================== FAILURES ===================================
________________ test_inspect_builtin_function_except_python311 ________________

    @skip_py311
    @skip_pypy3
    def test_inspect_builtin_function_except_python311():
        # Pre-3.11 Python versions - print builtin has no signature available
        expected = (
            "╭────────── <built-in function print> ───────────╮\n"
            "│ def print(...)                                 │\n"
            "│                                                │\n"
            "│ print(value, ..., sep=' ', end='\\n',           │\n"
            "│ file=sys.stdout, flush=False)                  │\n"
            "│                                                │\n"
            "│ 29 attribute(s) not shown. Run                 │\n"
            "│ inspect(inspect) for options.                  │\n"
            "╰────────────────────────────────────────────────╯\n"
        )
>       assert render(print) == expected
E       AssertionError: assert '╭────────── ...──────────╯\n' == '╭────────── ...──────────╯\n'
E         
E         Skipping 53 identical leading characters in diff, use -v to show
E         - def print(...)                                 │
E         + def print(*args, sep=' ', end='\n', file=None, │
E         + │ flush=False):                                  │
E           │                                                │
E         - │ print(value, ..., sep=' ', end='\n',           │...
E         
E         ...Full output truncated (10 lines hidden), use '-vv' to show

tests/test_inspect.py:153: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 3 passed in 0.19s