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

Class Class

Tools/clinic/libclinic/function.py:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38@dc.dataclass(repr=False)
39class Class:
40 name: str
41 module: Module | Clinic
42 cls: Class | None
43 typedef: str
44 type_object: str
45
46 def __post_init__(self) -> None:
47 self.parent = self.cls or self.module
48 self.classes: ClassDict = {}
49 self.functions: list[Function] = []
50
51 def __repr__(self) -> str:
52 return "<clinic.Class " + repr(self.name) + " at " + str(id(self)) + ">"
53
54
55class FunctionKind(enum.Enum):

Callers 2

test_Class_reprMethod · 0.90
directive_classMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_Class_reprMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…