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

Class RefCountEntry

Doc/tools/extensions/c_annotations.py:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40@dataclasses.dataclass(slots=True)
41class RefCountEntry:
42 # Name of the function.
43 name: str
44 # List of (argument name, type, refcount effect) tuples.
45 # (Currently not used. If it was, a dataclass might work better.)
46 args: list = dataclasses.field(default_factory=list)
47 # Return type of the function.
48 result_type: str = ""
49 # Reference count effect for the return value.
50 result_refs: int | None = None
51
52
53@dataclasses.dataclass(frozen=True, slots=True)

Callers 1

read_refcount_dataFunction · 0.85

Calls 1

fieldMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…