MCPcopy Index your code
hub / github.com/python/cpython / test_recursive_annotation

Method test_recursive_annotation

Lib/test/test_dataclasses/__init__.py:89–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 self.assertIn(",type=...,", repr_output)
88
89 def test_recursive_annotation(self):
90 class C:
91 pass
92
93 @dataclass
94 class D:
95 C: C = field()
96
97 self.assertIn(",type=...,", repr(D.__dataclass_fields__["C"]))
98
99 def test_dataclass_params_repr(self):
100 # Even though this is testing an internal implementation detail,

Callers

nothing calls this directly

Calls 1

assertInMethod · 0.95

Tested by

no test coverage detected