Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ C
Class
C
Lib/test/test_dataclasses/__init__.py:4027–4028 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4025
# dataclass code is involved in initializing the descriptor.
4026
@dataclass
4027
class
C:
4028
c: int=D()
4029
self.assertEqual(C.c.name,
'cx'
)
4030
4031
# Now test with a default value and init=False, which is the
Callers
nothing calls this directly
Calls
2
field
Function · 0.85
D
Class · 0.70
Tested by
no test coverage detected