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

Class User

Lib/test/test_dataclasses/__init__.py:1668–1670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1666 group: int
1667 @dataclass
1668 class User:
1669 name: str
1670 id: UserId
1671 u = User('Joe', UserId(123, 1))
1672 d = asdict(u)
1673 self.assertEqual(d, {'name': 'Joe', 'id': {'token': 123, 'group': 1}})

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…