Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ My
Class
My
Lib/test/test_pydoc/test_pydoc.py:461–462 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
459
import
dataclasses
460
@dataclasses.dataclass(slots=True)
461
class
My:
462
x: int = dataclasses.field(doc=
'Docstring for x'
)
463
doc = pydoc.render_doc(My)
464
self.assertIn(
'Docstring for x'
, doc)
465
Callers
nothing calls this directly
Calls
1
field
Method · 0.80
Tested by
no test coverage detected