MCPcopy Index your code
hub / github.com/RustPython/RustPython / DocEntry

Class DocEntry

crates/doc/generate.py:40–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40class DocEntry(typing.NamedTuple):
41 parts: Parts
42 raw_doc: str | None
43
44 @property
45 def key(self) -> str:
46 return ".".join(self.parts)
47
48 @property
49 def doc(self) -> str:
50 assert self.raw_doc is not None
51
52 return re.sub(UNICODE_ESCAPE, r"\\u{\1}", self.raw_doc.strip())
53
54
55def is_c_extension(module: types.ModuleType) -> bool:

Callers 2

traverseFunction · 0.85
find_doc_entriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected