◐ Shell
clean mode source ↗

gh-82129: Provide `__annotate__` method for dataclasses from `make_dataclass` by sobolevn · Pull Request #122262 · python/cpython

 ======================================================================
FAIL: test_no_types (test.test_dataclasses.TestMakeDataclass.test_no_types)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\test_dataclasses\__init__.py", line 4111, in test_no_types
    self.assertEqual(C.__annotations__, {'x': 'typing.Any',
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                         'y': 'typing.Any',
                                         ^^^^^^^^^^^^^^^^^^
                                         'z': 'typing.Any'})
                                         ^^^^^^^^^^^^^^^^^^^
AssertionError: {'x': typing.Any, 'y': typing.Any, 'z': typing.Any} != {'x': 'typing.Any', 'y': 'typing.Any', 'z': 'typing.Any'}
- {'x': typing.Any, 'y': typing.Any, 'z': typing.Any}
+ {'x': 'typing.Any', 'y': 'typing.Any', 'z': 'typing.Any'}
?       +          +       +          +       +          +

is expected, I just don't want to touch tests at this point.