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

Class Module

Tools/clinic/libclinic/function.py:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23@dc.dataclass(repr=False)
24class Module:
25 name: str
26 module: Module | Clinic
27
28 def __post_init__(self) -> None:
29 self.parent = self.module
30 self.modules: ModuleDict = {}
31 self.classes: ClassDict = {}
32 self.functions: list[Function] = []
33
34 def __repr__(self) -> str:
35 return "<clinic.Module " + repr(self.name) + " at " + str(id(self)) + ">"
36
37
38@dc.dataclass(repr=False)

Callers 2

test_Module_reprMethod · 0.90
directive_moduleMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_Module_reprMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…